Commit 7c2af21db7c0

Vincent Demeester <vincent@sbr.pm>
2024-02-21 09:27:21
Add profiles.i18n back for console
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 569757f
Changed files (2)
systems
modules
profiles
systems/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 {
+    console.keyMap = "fr-bepo";
+    console.font = "Lat2-Terminus16";
+    i18n = {
+      defaultLocale = "en_US.UTF-8";
+    };
+  };
+}
flake.nix
@@ -61,6 +61,7 @@
         ./systems/modules/profiles/base.nix
         ./systems/modules/profiles/builder.nix
         ./systems/modules/profiles/dns.nix
+        ./systems/modules/profiles/i18n.nix
         ./systems/modules/profiles/home.nix
         ./systems/modules/profiles/redhat.nix
         ./systems/modules/profiles/wireguard.server.nix