moved locale to settings

This commit is contained in:
Sven Vogel 2023-12-23 12:33:41 +01:00
parent 8377a0b8b7
commit 6ef625239c
2 changed files with 29 additions and 25 deletions

View File

@ -27,37 +27,24 @@ in
hardware.opengl.enable = true; hardware.opengl.enable = true;
# Set your time zone. # Set your time zone.
time.timeZone = "Europe/Berlin"; time.timeZone = settings.system.timeZone;
# Select internationalisation properties. # Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = settings.system.defaultLocale;
i18n.extraLocaleSettings = settings.system.extraLocales;
i18n.extraLocaleSettings = {
LC_ADDRESS = "de_DE.UTF-8";
LC_IDENTIFICATION = "de_DE.UTF-8";
LC_MEASUREMENT = "de_DE.UTF-8";
LC_MONETARY = "de_DE.UTF-8";
LC_NAME = "de_DE.UTF-8";
LC_NUMERIC = "de_DE.UTF-8";
LC_PAPER = "de_DE.UTF-8";
LC_TELEPHONE = "de_DE.UTF-8";
LC_TIME = "de_DE.UTF-8";
};
services.rpcbind.enable = true; # needed for NFS
programs.partition-manager.enable = true; programs.partition-manager.enable = true;
# use bash shell for other users # use bash shell for other users
environment.shells = with pkgs; [ bash ]; environment.shells = with pkgs; [ bash ];
# Configure console keymap # Configure console keymap
console.keyMap = "de"; console.keyMap = settings.system.ttykeymap;
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = (with pkgs; [ environment.systemPackages = (with pkgs; [
devbox devbox
ffmpeg-full ffmpeg-full

View File

@ -2,6 +2,23 @@ with import <nixpkgs> {};
{ {
stateVersion = "23.11"; stateVersion = "23.11";
system = {
ttykeymap = "de";
timeZone = "Europe/Berlin";
defaultLocale = "en_US.UTF-8";
extraLocales = {
LC_ADDRESS = "de_DE.UTF-8";
LC_IDENTIFICATION = "de_DE.UTF-8";
LC_MEASUREMENT = "de_DE.UTF-8";
LC_MONETARY = "de_DE.UTF-8";
LC_NAME = "de_DE.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "de_DE.UTF-8";
LC_TELEPHONE = "de_DE.UTF-8";
LC_TIME = "de_DE.UTF-8";
};
};
hardware = { hardware = {
# support for GPUs # support for GPUs
amdgpu = true; amdgpu = true;