ctucx.git: nixfiles

ctucx' nixfiles

commit adfda451126f807a209d4c56a3e60f7dae02dfb5
parent 68eeb6884c2008e952ca094e2eaa1615fe87585a
Author: Leah (ctucx) <git@ctu.cx>
Date: Wed, 19 Oct 2022 22:24:01 +0200

configurations/common/programs/scripts: only add backup-script on linux hosts
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/configurations/common/programs/scripts.nix b/configurations/common/programs/scripts.nix
@@ -1,4 +1,4 @@
-{ pkgs, ... }:
+{ pkgs, lib, currentSystem, ... }:
 
 let
   nix-cleanup = pkgs.writeShellScriptBin "nix-cleanup" ''

@@ -139,6 +139,8 @@ let
 
 in {
 
-  home-manager.users.leah.home.packages = [ nix-cleanup backup-lollo ];
+  home-manager.users.leah.home.packages = [ nix-cleanup ] ++ lib.optionals ( currentSystem == "x86_64-linux") [
+    backup-lollo
+  ];
 
 }