properly reformat all files

This commit is contained in:
2025-04-14 10:37:58 +02:00
parent d670e245e4
commit 725588ec9b
26 changed files with 920 additions and 776 deletions

View File

@ -1,45 +1,50 @@
{ config, pkgs, lib, ... }:
{
config,
pkgs,
lib,
...
}:
{
options.modules.darkman = {
enable = lib.mkEnableOption "Darkman service and integration";
customLightModeScript = lib.mkOption {
type = lib.types.str;
description = "Path to custom light mode script";
};
options.modules.darkman = {
enable = lib.mkEnableOption "Darkman service and integration";
customLightModeScript = lib.mkOption {
type = lib.types.str;
description = "Path to custom light mode script";
};
customDarkModeScript = lib.mkOption {
type = lib.types.str;
description = "Path to custom dark mode script";
};
};
customDarkModeScript = lib.mkOption {
type = lib.types.str;
description = "Path to custom dark mode script";
};
};
config = lib.mkIf config.modules.darkman.enable {
home.packages = with pkgs; [ dconf ];
config = lib.mkIf config.modules.darkman.enable {
home.packages = with pkgs; [ dconf ];
services.darkman = {
enable = true;
darkModeScripts = {
theme = ''
${pkgs.dconf}/bin/dconf write\
/org/gnome/desktop/interface/color-scheme "'prefer-dark'"
'';
services.darkman = {
enable = true;
darkModeScripts = {
theme = ''
${pkgs.dconf}/bin/dconf write\
/org/gnome/desktop/interface/color-scheme "'prefer-dark'"
'';
custom = config.modules.darkman.customDarkModeScript;
pywalfox = "command -v pywalfox &>/dev/null && pywalfox dark && pywalfox update";
};
custom = config.modules.darkman.customDarkModeScript;
pywalfox = "command -v pywalfox &>/dev/null && pywalfox dark && pywalfox update";
};
lightModeScripts = {
theme = ''
${pkgs.dconf}/bin/dconf write\
/org/gnome/desktop/interface/color-scheme "'prefer-light'"
'';
lightModeScripts = {
theme = ''
${pkgs.dconf}/bin/dconf write\
/org/gnome/desktop/interface/color-scheme "'prefer-light'"
'';
custom = config.modules.darkman.customLightModeScript;
pywalfox = "command -v pywalfox &>/dev/null && pywalfox light && pywalfox update";
};
custom = config.modules.darkman.customLightModeScript;
pywalfox = "command -v pywalfox &>/dev/null && pywalfox light && pywalfox update";
};
settings.usegeoclue = true;
};
};
settings.usegeoclue = true;
};
};
}

View File

@ -1,77 +1,77 @@
{ config, lib, ... }:
{
options.modules.fish = {
enable = lib.mkEnableOption "Fish integration";
enableDefaultAliases = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Enable default aliases and abbreviations";
};
options.modules.fish = {
enable = lib.mkEnableOption "Fish integration";
enableDefaultAliases = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Enable default aliases and abbreviations";
};
enableStarship = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable Starship prompt";
};
enableStarship = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable Starship prompt";
};
functions = lib.mkOption {
type = with lib.types; attrsOf str;
description = "Fish function definitions";
};
};
functions = lib.mkOption {
type = with lib.types; attrsOf str;
description = "Fish function definitions";
};
};
config = lib.mkIf config.modules.fish.enable {
programs.nix-index = {
enable = true;
enableFishIntegration = true;
};
config = lib.mkIf config.modules.fish.enable {
programs.nix-index = {
enable = true;
enableFishIntegration = true;
};
programs.starship = lib.mkIf config.modules.fish.enableStarship {
enable = true;
enableFishIntegration = true;
};
programs.starship = lib.mkIf config.modules.fish.enableStarship {
enable = true;
enableFishIntegration = true;
};
programs.fish = {
enable = true;
interactiveShellInit = ''
set fish_greeting
cat ~/.cache/wal/sequences
'';
programs.fish = {
enable = true;
interactiveShellInit = ''
set fish_greeting
cat ~/.cache/wal/sequences
'';
shellAliases = lib.mkIf config.modules.fish.enableDefaultAliases {
".." = "cd ..";
"..." = "cd ../..";
"...." = "cd ../../../";
"....." = "cd ../../../../";
"cp" = "cp -v";
"ddf" = "df -h";
"etc" = "erd -H";
"mkdir" = "mkdir -p";
"mv" = "mv -v";
"rm" = "rm -v";
"rr" = "rm -rf";
shellAliases = lib.mkIf config.modules.fish.enableDefaultAliases {
".." = "cd ..";
"..." = "cd ../..";
"...." = "cd ../../../";
"....." = "cd ../../../../";
"neofetch" = "fastfetch";
};
"cp" = "cp -v";
"ddf" = "df -h";
"etc" = "erd -H";
"mkdir" = "mkdir -p";
"mv" = "mv -v";
"rm" = "rm -v";
"rr" = "rm -rf";
shellAbbrs = lib.mkIf config.modules.fish.enableDefaultAliases {
gaa = "git add -A";
ga = "git add";
gbd = "git branch --delete";
gb = "git branch";
gc = "git commit";
gcm = "git commit -m";
gcob = "git checkout -b";
gco = "git checkout";
gd = "git diff";
gl = "git log";
gp = "git push";
gs = "git status";
};
functions = config.modules.fish.functions;
};
};
"neofetch" = "fastfetch";
};
shellAbbrs = lib.mkIf config.modules.fish.enableDefaultAliases {
gaa = "git add -A";
ga = "git add";
gbd = "git branch --delete";
gb = "git branch";
gc = "git commit";
gcm = "git commit -m";
gcob = "git checkout -b";
gco = "git checkout";
gd = "git diff";
gl = "git log";
gp = "git push";
gs = "git status";
};
functions = config.modules.fish.functions;
};
};
}