ctucx.git: nixfiles

ctucx' nixfiles

commit b42b9c31fff67fae32fe5c1e9324d07af60da79f
parent 524be211318eae5d313d04dded9fec3da6e11732
Author: Katja (ctucx) <git@ctu.cx>
Date: Tue, 18 Mar 2025 12:55:28 +0100

configurations/homeManager/programs: cleanup
4 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/configurations/homeManager/programs/ghostty.nix b/configurations/homeManager/programs/ghostty.nix
@@ -4,9 +4,8 @@
 
   programs.ghostty = {
     enable = true;
-
-    enableBashIntegration = true;
     enableZshIntegration  = true;
+    enableBashIntegration = true;
     installBatSyntax      = true;
 
     settings = {
diff --git a/configurations/homeManager/programs/gpg.nix b/configurations/homeManager/programs/gpg.nix
@@ -85,13 +85,9 @@
 
       ];
 
-      settings = {
-        keyserver = "hkps://keyserver.ubuntu.com:443";
-      };
+      settings.keyserver = "hkps://keyserver.ubuntu.com:443";
 
-      scdaemonSettings = {
-        disable-ccid = true;
-      };
+      scdaemonSettings.disable-ccid = true;
     };
 
     git.signing = {
diff --git a/configurations/homeManager/programs/shellUtilities.nix b/configurations/homeManager/programs/shellUtilities.nix
@@ -11,13 +11,14 @@
     rm       = "trash-put";
 
     diff     = "diff --color";
+    ip       = "ip --color=auto";
 
     killall  = "pkill";
 
     grep     = "rg";
     find     = "fd";
 
-    backgrounditems = "bgiparser -f  \"\$HOME/Library/Application Support/com.apple.backgroundtaskmanagementagent/backgrounditems.btm\" -c";
+    backgrounditems = ''bgiparser -f  "$HOME/Library/Application Support/com.apple.backgroundtaskmanagementagent/backgrounditems.btm" -c'';
 
     zzz = (
       if pkgs.stdenv.isLinux then

@@ -57,11 +58,15 @@
     gptfdisk
     e2fsprogs
     dosfstools
-  ] ++ (if pkgs.stdenv.isLinux then [
+  ] ++ lib.optionals pkgs.stdenv.isLinux [
+    (pkgs.writeShellScriptBin "open" ''
+      ${pkgs.coreutils}/bin/nohup ${pkgs.xdg-utils}/bin/xdg-open "$@" > /dev/null 2>&1
+    '')
+
     usbutils
     pciutils
 
     lm_sensors
-  ] else []);
+  ];
 
 }
diff --git a/configurations/homeManager/programs/starship.nix b/configurations/homeManager/programs/starship.nix
@@ -4,8 +4,9 @@
 
   programs.starship = {
     enable                = true;
-    enableBashIntegration = true;
     enableZshIntegration  = true;
+    enableBashIntegration = true;
+
     settings = {
       add_newline = false;
       status = {