refactor: move system locale options to their own file
This commit is contained in:
parent
f6e8793229
commit
e6214925fc
2 changed files with 18 additions and 18 deletions
17
systems/modules/locale.nix
Normal file
17
systems/modules/locale.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
time.timeZone = "Asia/Singapore";
|
||||||
|
|
||||||
|
i18n.defaultLocale = "en_SG.UTF-8";
|
||||||
|
|
||||||
|
i18n.extraLocaleSettings = {
|
||||||
|
LC_ADDRESS = "en_SG.UTF-8";
|
||||||
|
LC_IDENTIFICATION = "en_SG.UTF-8";
|
||||||
|
LC_MEASUREMENT = "en_SG.UTF-8";
|
||||||
|
LC_MONETARY = "en_SG.UTF-8";
|
||||||
|
LC_NAME = "en_SG.UTF-8";
|
||||||
|
LC_NUMERIC = "en_SG.UTF-8";
|
||||||
|
LC_PAPER = "en_SG.UTF-8";
|
||||||
|
LC_TELEPHONE = "en_SG.UTF-8";
|
||||||
|
LC_TIME = "en_SG.UTF-8";
|
||||||
|
};
|
||||||
|
}
|
|
@ -6,6 +6,7 @@
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hw-nemesis.nix
|
./hw-nemesis.nix
|
||||||
./modules/networking.nix
|
./modules/networking.nix
|
||||||
|
./modules/locale.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
|
@ -14,24 +15,6 @@
|
||||||
|
|
||||||
networking.hostName = "nemesis"; # Define your hostname.
|
networking.hostName = "nemesis"; # Define your hostname.
|
||||||
|
|
||||||
# Set your time zone.
|
|
||||||
time.timeZone = "Asia/Singapore";
|
|
||||||
|
|
||||||
# Select internationalisation properties.
|
|
||||||
i18n.defaultLocale = "en_SG.UTF-8";
|
|
||||||
|
|
||||||
i18n.extraLocaleSettings = {
|
|
||||||
LC_ADDRESS = "en_SG.UTF-8";
|
|
||||||
LC_IDENTIFICATION = "en_SG.UTF-8";
|
|
||||||
LC_MEASUREMENT = "en_SG.UTF-8";
|
|
||||||
LC_MONETARY = "en_SG.UTF-8";
|
|
||||||
LC_NAME = "en_SG.UTF-8";
|
|
||||||
LC_NUMERIC = "en_SG.UTF-8";
|
|
||||||
LC_PAPER = "en_SG.UTF-8";
|
|
||||||
LC_TELEPHONE = "en_SG.UTF-8";
|
|
||||||
LC_TIME = "en_SG.UTF-8";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
users.users.rafiq = {
|
users.users.rafiq = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue