mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-23 00:34:24 +01:00
nix: Modularize locale and timezone
This commit is contained in:
parent
7760a7028b
commit
5694bbc450
@ -8,6 +8,7 @@
|
||||
./greetd.nix
|
||||
./home-manager.nix
|
||||
./hyprland.nix
|
||||
./locale.nix
|
||||
./logind.nix
|
||||
./mullvad.nix
|
||||
./neovim.nix
|
||||
@ -20,6 +21,7 @@
|
||||
./stylix.nix
|
||||
./systemd.nix
|
||||
./thunar.nix
|
||||
./timezone.nix
|
||||
./user.nix
|
||||
./virtualization.nix
|
||||
./vmware.nix
|
||||
|
4
modules/locale.nix
Normal file
4
modules/locale.nix
Normal file
@ -0,0 +1,4 @@
|
||||
let VARIABLES = import ./variables.nix; in {
|
||||
i18n.defaultLocale = VARIABLES.defaultLocale;
|
||||
i18n.supportedLocales = VARIABLES.supportedLocales;
|
||||
}
|
3
modules/timezone.nix
Normal file
3
modules/timezone.nix
Normal file
@ -0,0 +1,3 @@
|
||||
let VARIABLES = import ../src/variables.nix; in {
|
||||
time.timeZone = "${VARIABLES.timezone}";
|
||||
}
|
@ -14,10 +14,6 @@ let VARIABLES = import ./variables.nix; in {
|
||||
../containers
|
||||
];
|
||||
|
||||
# locale
|
||||
i18n.defaultLocale = VARIABLES.defaultLocale;
|
||||
i18n.supportedLocales = VARIABLES.supportedLocales;
|
||||
|
||||
hardware.opengl.driSupport32Bit = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
@ -119,7 +115,5 @@ let VARIABLES = import ./variables.nix; in {
|
||||
environment.defaultPackages = [ ];
|
||||
system.stateVersion = VARIABLES.stateVersion;
|
||||
|
||||
time.timeZone = "${VARIABLES.timezone}"; # Timezone
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 11918 ];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user