ctucx.git: nixfiles

ctucx' nixfiles

commit b32f072bf0e0dac327723f273311086eef0fcb92
parent 28a6228047e36cb268e84895f3a178c96f96622a
Author: Leah (ctucx) <leah@ctu.cx>
Date: Tue, 13 Sep 2022 18:55:07 +0200

configurations/common: set locales only on linux
2 files changed, 14 insertions(+), 15 deletions(-)
diff --git a/configurations/common/default.nix b/configurations/common/default.nix
@@ -30,7 +30,8 @@
     ] else [])
   ]);
 
-  time.timeZone       = "Europe/Berlin";
+  home-manager.useGlobalPkgs = true;
+  time.timeZone              = "Europe/Berlin";
 
   environment.systemPackages = with pkgs; [
     alacritty.terminfo

@@ -43,18 +44,4 @@
     '';
   };
 
-  home-manager = {
-    useGlobalPkgs = true;
-    users.leah = {
-      home = {
-        language = {
-          "base"     = "en_US.UTF-8";
-          "time"     = "de_DE.utf8";
-          "address"  = "de_DE.utf8";
-          "monetary" = "de_DE.utf8";
-          "paper"    = "de_DE.utf8";
-        };
-      };
-    };
-  };
 }
diff --git a/configurations/common/linux.nix b/configurations/common/linux.nix
@@ -80,4 +80,16 @@
 
   };
 
+  home-manager.users.leah = {
+    home = {
+      language = {
+        "base"     = "en_US.UTF-8";
+        "time"     = "de_DE.utf8";
+        "address"  = "de_DE.utf8";
+        "monetary" = "de_DE.utf8";
+        "paper"    = "de_DE.utf8";
+      };
+    };
+  };
+
 }