diff options
| author | Fuwn <[email protected]> | 2024-10-01 05:30:34 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-01 05:30:34 -0700 |
| commit | e25cfec3e1a68b3e064d02fd16537ac701e5ad4d (patch) | |
| tree | 0bf852293d20a03514be0151a31e34e42c3d66cd /modules | |
| parent | modules: add default pc programs (diff) | |
| download | nixos-config-e25cfec3e1a68b3e064d02fd16537ac701e5ad4d.tar.xz nixos-config-e25cfec3e1a68b3e064d02fd16537ac701e5ad4d.zip | |
modules: move shared i18n to pc
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/desktop/software/default.nix | 1 | ||||
| -rw-r--r-- | modules/desktop/software/input.nix | 4 | ||||
| -rw-r--r-- | modules/desktop/software/locale.nix | 7 | ||||
| -rw-r--r-- | modules/pc/default.nix | 6 |
4 files changed, 7 insertions, 11 deletions
diff --git a/modules/desktop/software/default.nix b/modules/desktop/software/default.nix index c1aff52..179f4ad 100644 --- a/modules/desktop/software/default.nix +++ b/modules/desktop/software/default.nix @@ -34,7 +34,6 @@ console = { earlySetup = true; - keyMap = "us"; font = "ter-v16n"; packages = [ pkgs.terminus_font ]; }; diff --git a/modules/desktop/software/input.nix b/modules/desktop/software/input.nix index 2d9f651..5d43085 100644 --- a/modules/desktop/software/input.nix +++ b/modules/desktop/software/input.nix @@ -1,8 +1,6 @@ -{ pkgs, secrets, ... }: +{ pkgs, ... }: { i18n = { - defaultLocale = secrets.i18n.locale; - inputMethod = { enable = true; type = "fcitx5"; diff --git a/modules/desktop/software/locale.nix b/modules/desktop/software/locale.nix index 8ebd49b..aded640 100644 --- a/modules/desktop/software/locale.nix +++ b/modules/desktop/software/locale.nix @@ -1,9 +1,4 @@ -{ secrets, ... }: { location.provider = "geoclue2"; - - time = { - timeZone = "${secrets.i18n.timezone}"; - hardwareClockInLocalTime = false; - }; + time.hardwareClockInLocalTime = false; } diff --git a/modules/pc/default.nix b/modules/pc/default.nix index 27ef69b..97fe6b9 100644 --- a/modules/pc/default.nix +++ b/modules/pc/default.nix @@ -1,5 +1,9 @@ -{ pkgs, ... }: +{ pkgs, secrets, ... }: { + i18n.defaultLocale = secrets.i18n.locale; + time.timeZone = secrets.i18n.timezone; + console.keyMap = secrets.i18n.keymap; + environment.systemPackages = with pkgs; [ vim wget |