Skip to content

Commit

Permalink
Tidy locale config
Browse files Browse the repository at this point in the history
  • Loading branch information
DanNixon committed Oct 24, 2023
1 parent e6a1e98 commit 7930426
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 15 deletions.
3 changes: 1 addition & 2 deletions configurations/akane/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ inputs.nixpkgs.lib.nixosSystem {
inputs.nixos-hardware.nixosModules.common-pc-ssd

inputs.sops-nix.nixosModules.sops
../../../modules/nixos/base.nix
../../../modules/nixos/base
../../../modules/nixos/dan
../../../modules/nixos/dan/secrets
../../../modules/nixos/desktop-environment.nix
../../../modules/nixos/dnscrypt-proxy.nix
../../../modules/nixos/locale.nix
../../../modules/nixos/networkmanager.nix
../../../modules/nixos/peripherals/adb.nix
../../../modules/nixos/peripherals/scanner.nix
Expand Down
3 changes: 1 addition & 2 deletions configurations/kawashiro/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ inputs.nixpkgs.lib.nixosSystem {
inputs.nixos-hardware.nixosModules.common-pc-ssd

inputs.sops-nix.nixosModules.sops
../../../modules/nixos/base.nix
../../../modules/nixos/base
../../../modules/nixos/dan
../../../modules/nixos/dan/secrets
../../../modules/nixos/desktop-environment.nix
../../../modules/nixos/dnscrypt-proxy.nix
../../../modules/nixos/locale.nix
../../../modules/nixos/networkmanager.nix
../../../modules/nixos/peripherals/sound.nix
../../../modules/nixos/peripherals/sdr.nix
Expand Down
3 changes: 1 addition & 2 deletions configurations/maya/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ inputs.nixpkgs.lib.nixosSystem {
inputs.nixos-hardware.nixosModules.common-pc-ssd

inputs.sops-nix.nixosModules.sops
../../../modules/nixos/base.nix
../../../modules/nixos/base
../../../modules/nixos/dan
../../../modules/nixos/dan/secrets
../../../modules/nixos/desktop-environment.nix
../../../modules/nixos/dnscrypt-proxy.nix
../../../modules/nixos/locale.nix
../../../modules/nixos/networkmanager.nix
../../../modules/nixos/peripherals/ddcutil.nix
../../../modules/nixos/peripherals/probe-rs.nix
Expand Down
3 changes: 1 addition & 2 deletions configurations/yukari/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ inputs.nixpkgs.lib.nixosSystem {
})
./disk-config.nix

../../../modules/nixos/base.nix
../../../modules/nixos/base
../../../modules/nixos/dan
../../../modules/nixos/dnscrypt-proxy.nix
../../../modules/nixos/locale.nix
../../../modules/nixos/networkmanager.nix
../../../modules/nixos/ssh.nix
../../../modules/nixos/syncthing.nix
Expand Down
3 changes: 1 addition & 2 deletions configurations/yuyuko/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ inputs.nixpkgs.lib.nixosSystem {
})
./disk-config.nix

../../../modules/nixos/base.nix
../../../modules/nixos/base
../../../modules/nixos/dan
../../../modules/nixos/desktop-environment.nix
../../../modules/nixos/dnscrypt-proxy.nix
../../../modules/nixos/locale.nix
../../../modules/nixos/networkmanager.nix
../../../modules/nixos/peripherals/sound.nix
../../../modules/nixos/ssh.nix
Expand Down
4 changes: 4 additions & 0 deletions modules/nixos/base.nix → modules/nixos/base/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
config,
...
}: {
imports = [
./locale.nix
];

nix = {
# This will add each flake input as a registry
# To make nix3 commands consistent with your flake
Expand Down
10 changes: 5 additions & 5 deletions modules/nixos/locale.nix → modules/nixos/base/locale.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{...}: {
time.timeZone = "Europe/London";
{lib, ...}: {
time.timeZone = lib.mkDefault "Europe/London";

i18n.defaultLocale = "en_GB.UTF-8";
i18n.defaultLocale = lib.mkDefault "en_GB.UTF-8";

i18n.extraLocaleSettings = {
i18n.extraLocaleSettings = lib.mkDefault {
LC_ADDRESS = "en_GB.UTF-8";
LC_IDENTIFICATION = "en_GB.UTF-8";
LC_MEASUREMENT = "en_GB.UTF-8";
Expand All @@ -15,5 +15,5 @@
LC_TIME = "en_GB.UTF-8";
};

console.keyMap = "uk";
console.keyMap = lib.mkDefault "uk";
}

0 comments on commit 7930426

Please sign in to comment.