Commit d888e428864d

Vincent Demeester <vincent@sbr.pm>
2018-11-23 16:30:02
modules: add i18n module
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent febc990
Changed files (3)
modules/profiles/i18n.nix
@@ -0,0 +1,24 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+let
+  cfg = config.profiles.i18n;
+in
+{
+  options = {
+    profiles.i18n = {
+      enable = mkOption {
+        default = true;
+        description = "Enable i18n profile";
+        type = types.bool;
+      };
+    };
+  };
+  config = mkIf cfg.enable {
+    i18n = {
+      consoleFont = "Lat2-Terminus16";
+      consoleKeyMap = "fr-bepo";
+      defaultLocale = "en_US.UTF-8";
+    };
+  };
+}
modules/module-list.nix
@@ -4,6 +4,7 @@
   imports = [
     ./profiles/fish.nix
     ./profiles/desktop.nix
+    ./profiles/i18n.nix
     ./profiles/nix-config.nix
     ./profiles/nix-auto-update.nix
     ./profiles/laptop.nix
profiles/default.nix
@@ -27,9 +27,4 @@
       wget
     ];
   };
-  i18n = {
-    consoleFont = "Lat2-Terminus16";
-    consoleKeyMap = "fr-bepo";
-    defaultLocale = "en_US.UTF-8";
-  };
 }