Add comments to explain each file

This commit is contained in:
Hadi 2024-10-15 15:02:07 +02:00
parent 4733414bb3
commit 915a767283
32 changed files with 48 additions and 26 deletions

View File

@ -1,7 +1,5 @@
{ config, lib, ... }: { config, lib, ... }:
let let
transparentButtons = config.var.theme.bar.transparentButtons;
accent = "#${config.lib.stylix.colors.base0D}"; accent = "#${config.lib.stylix.colors.base0D}";
muted = "#${config.lib.stylix.colors.base03}"; muted = "#${config.lib.stylix.colors.base03}";
in { in {

View File

@ -1 +1,4 @@
{ pkgs, ... }: { home.packages = with pkgs; [ wkhtmltopdf ]; } # Work in progress on another repo
{ pkgs, ... }: {
home.packages = with pkgs; [ wkhtmltopdf ];
}

View File

@ -1,3 +1,4 @@
# Nextcloud is a suite of client-server software for creating file hosting services and using them. It is functionally similar to Dropbox, although Nextcloud is free and open-source, allowing anyone to install and operate it on a private server. In contrast to proprietary services, Nextcloud can be hosted on a private server, without additional cost.
{ {
services.nextcloud-client = { services.nextcloud-client = {
enable = true; enable = true;

View File

@ -1,3 +1,4 @@
# Nixvim is a NixOS module that installs and configures Neovim
{ inputs, ... }: { { inputs, ... }: {
imports = [ imports = [
inputs.nixvim.homeManagerModules.nixvim inputs.nixvim.homeManagerModules.nixvim

View File

@ -1,5 +1,4 @@
{ {
programs.nixvim.globals.mapleader = " "; programs.nixvim.globals.mapleader = " ";
programs.nixvim.opts = { programs.nixvim.opts = {
updatetime = 50; # Faster completion updatetime = 50; # Faster completion

View File

@ -1,3 +1,5 @@
# Qutebrowser is a keyboard-focused browser with a minimal GUI.
# My homepage is generated using https://github.com/anotherhadi/homepage
{ pkgs, config, ... }: { pkgs, config, ... }:
let let

View File

@ -1,3 +1,4 @@
# A duckduckgo colorscheme generated for the Stylix theme used.
{ config, ... }: { config, ... }:
let let
accent = config.lib.stylix.colors.base0D; accent = config.lib.stylix.colors.base0D;

View File

@ -1,3 +1,4 @@
# Eza is a ls replacement
{ {
programs.eza = { programs.eza = {
enable = true; enable = true;

View File

@ -1,3 +1,4 @@
# Fzf is a general-purpose command-line fuzzy finder.
{ config, lib, ... }: { config, lib, ... }:
let let
accent = "#" + config.lib.stylix.colors.base0D; accent = "#" + config.lib.stylix.colors.base0D;

View File

@ -1,3 +1,4 @@
# starship is a minimal, fast, and extremely customizable prompt for any shell!
{ config, lib, ... }: { config, lib, ... }:
let let
accent = "#${config.lib.stylix.colors.base0D}"; accent = "#${config.lib.stylix.colors.base0D}";

View File

@ -1,3 +1,4 @@
# Tmux is a terminal multiplexer that allows you to run multiple terminal sessions in a single window.
{ pkgs, ... }: { { pkgs, ... }: {
programs.tmux = { programs.tmux = {
enable = true; enable = true;

View File

@ -1,6 +1,7 @@
# Zoxide is a cd replacement
{ {
programs.zoxide = { programs.zoxide = {
enable= true; enable = true;
enableZshIntegration = true; enableZshIntegration = true;
}; };
} }

View File

@ -1,3 +1,4 @@
# My shell configuration
{ pkgs, lib, config, ... }: { pkgs, lib, config, ... }:
let fetch = config.var.theme.fetch; # neofetch, nerdfetch, pfetch let fetch = config.var.theme.fetch; # neofetch, nerdfetch, pfetch
in { in {

View File

@ -1,18 +1,23 @@
# Spicetify is a spotify client customizer
{ pkgs, config, lib, inputs, ... }: { pkgs, config, lib, inputs, ... }:
let let
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system}; spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system};
accent = "#${config.lib.stylix.colors.base0D}"; accent = "${config.lib.stylix.colors.base0D}";
in { in {
imports = [ inputs.spicetify-nix.homeManagerModules.default ]; imports = [ inputs.spicetify-nix.homeManagerModules.default ];
nixpkgs.config.allowUnfreePredicate = pkg: nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [ "spotify" ]; builtins.elem (lib.getName pkg) [ "spotify" ];
stylix.targets.spicetify.enable = false;
programs.spicetify = { programs.spicetify = {
enable = true; enable = true;
theme = lib.mkForce spicePkgs.themes.text; theme = lib.mkForce spicePkgs.themes.text;
# TODO: Colors not working colorScheme = "custom";
customColorScheme = lib.mkForce {
customColorScheme = {
button = accent; button = accent;
button-active = accent; button-active = accent;
tab-active = accent; tab-active = accent;

View File

@ -1,3 +1,4 @@
# Thunar is a file explorer
{ pkgs, ... }: { { pkgs, ... }: {
# ctrl + m to toggle the menubar # ctrl + m to toggle the menubar
home.packages = with pkgs.xfce; [ home.packages = with pkgs.xfce; [

View File

@ -1,3 +1,4 @@
# Yazi is a TUI file explorer
{ {
programs.yazi = { programs.yazi = {
enable = true; enable = true;

View File

@ -1,3 +1,4 @@
# Batsignal is a simple utility to send battery notifications.
{ {
services.batsignal = { services.batsignal = {
enable = true; enable = true;

View File

@ -1,3 +1,4 @@
# Clipman allows you to save and retrieve clipboard history.
{ pkgs, ... }: { pkgs, ... }:
let let
clipboard-clear = pkgs.writeShellScriptBin "clipboard-clear" '' clipboard-clear = pkgs.writeShellScriptBin "clipboard-clear" ''

View File

@ -1,3 +1,4 @@
# GTK & QT theme configuration
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
let let
accent = "#${config.lib.stylix.colors.base0D}"; accent = "#${config.lib.stylix.colors.base0D}";

View File

@ -1,3 +1,4 @@
# Hypridle is a daemon that listens for user activity and runs commands when the user is idle.
{ pkgs, ... }: { { pkgs, ... }: {
services.hypridle = { services.hypridle = {
enable = true; enable = true;

View File

@ -1,5 +1,5 @@
# So best window tiling manager
{ pkgs, config, inputs, ... }: { pkgs, config, inputs, ... }:
let let
border-size = config.var.theme.border-size; border-size = config.var.theme.border-size;
gaps-in = config.var.theme.gaps-in; gaps-in = config.var.theme.gaps-in;

View File

@ -1,3 +1,4 @@
# Hyprlock is a lockscreen for Hyprland
{ config, ... }: { config, ... }:
let let
foreground = "rgba(216, 222, 233, 0.70)"; foreground = "rgba(216, 222, 233, 0.70)";

View File

@ -1,3 +1,5 @@
# Hyprpanel is the bar on top of the screen
# Display informations like workspaces, battery, wifi, ...
{ pkgs, config, ... }: { pkgs, config, ... }:
let let
transparentButtons = config.var.theme.bar.transparentButtons; transparentButtons = config.var.theme.bar.transparentButtons;

View File

@ -1,3 +1,4 @@
# Hyprpaper is used to set the wallpaper on the system
{ {
# The wallpaper is set by stylix # The wallpaper is set by stylix
services.hyprpaper = { services.hyprpaper = {

View File

@ -1,8 +0,0 @@
{ inputs, pkgs, ... }: {
home.packages = [ inputs.hyprswitch.packages."${pkgs.system}".default ];
wayland.windowManager.hyprland.settings.exec-once = [
"${inputs.hyprswitch.packages."${pkgs.system}".default}/bin/hyprswitch init"
];
}

View File

@ -1,3 +1,4 @@
# KDE Connect is a project that enables all your devices to communicate with each other. (laptop/phone)
{ {
services.kdeconnect = { services.kdeconnect = {
enable = true; enable = true;

View File

@ -1,3 +1,4 @@
# Mime allows us to configure the default applications for each file type
{ {
xdg.mimeApps = { xdg.mimeApps = {
enable = true; enable = true;

View File

@ -1,3 +1,4 @@
# Tofi is a dmeny-like application launcher
# TODO: Tofi configuration # TODO: Tofi configuration
{ config, lib, ... }: { config, lib, ... }:
let let

View File

@ -1,3 +1,4 @@
# Udiskie is a simple daemon that uses udisks to automatically mount removable storage devices.
{ {
services.udiskie = { services.udiskie = {
enable = true; enable = true;

View File

@ -1,3 +1,4 @@
# Wofi is a launcher for Wayland, inspired by rofi.
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
let let
accent = "#${config.lib.stylix.colors.base0D}"; accent = "#${config.lib.stylix.colors.base0D}";

View File

@ -1,4 +1,4 @@
# PDF viewer # Zathura is a PDF viewer
{ {
programs.zathura = { programs.zathura = {
enable = true; enable = true;

View File

@ -26,7 +26,6 @@
../../home/system/hyprlock ../../home/system/hyprlock
../../home/system/hyprpanel ../../home/system/hyprpanel
../../home/system/hyprpaper ../../home/system/hyprpaper
# ../../home/system/hyprswitch
../../home/system/gtk ../../home/system/gtk
../../home/system/wofi ../../home/system/wofi
../../home/system/batsignal ../../home/system/batsignal