nixos/modules/core/system.nix

37 lines
640 B
Nix

{
config,
...
}:
let
cfg = config.system;
in
{
nix = {
settings = {
experimental-features = [
"nix-command"
"flakes"
];
};
};
console.keyMap = cfg.keyMap;
time.timeZone = cfg.timeZone;
i18n = {
defaultLocale = cfg.locale;
extraLocaleSettings = {
LC_ADDRESS = cfg.locale;
LC_IDENTIFICATION = cfg.locale;
LC_MEASUREMENT = cfg.locale;
LC_MONETARY = cfg.locale;
LC_NAME = cfg.locale;
LC_NUMERIC = cfg.locale;
LC_PAPER = cfg.locale;
LC_TELEPHONE = cfg.locale;
LC_TIME = cfg.locale;
};
};
system.stateVersion = "25.05";
}