mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 16:23:57 +01:00
meta: Begin making system module customizable
These options are pretty important so it'd be cool to be able to change them. Current strategy is to assume that configuration through the module is preferred over overriding the NixOS option directly.
This commit is contained in:
parent
26348c28ea
commit
019603afc7
@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
inherit (pkgs.nixVersions) nix_2_19;
|
inherit (pkgs.nixVersions) nix_2_19;
|
||||||
|
|
||||||
|
# TODO: Make these variables options
|
||||||
|
timeZone = "America/New_York";
|
||||||
|
defaultLocale = "ja_JP.UTF-8";
|
||||||
|
supportedLocales = [ "ja_JP.UTF-8/UTF-8" "en_US.UTF-8/UTF-8" "fr_FR.UTF-8/UTF-8" ];
|
||||||
|
stateVersion = "22.11";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
@ -35,10 +41,15 @@ in
|
|||||||
memoryPercent = 100;
|
memoryPercent = 100;
|
||||||
};
|
};
|
||||||
|
|
||||||
time.timeZone = "America/New_York";
|
time = {
|
||||||
|
inherit timeZone;
|
||||||
|
};
|
||||||
|
|
||||||
i18n.defaultLocale = "ja_JP.UTF-8";
|
i18n = {
|
||||||
i18n.supportedLocales = [ "ja_JP.UTF-8/UTF-8" "en_US.UTF-8/UTF-8" "fr_FR.UTF-8/UTF-8" ];
|
inherit defaultLocale supportedLocales;
|
||||||
|
};
|
||||||
|
|
||||||
system.stateVersion = "22.11";
|
system = {
|
||||||
|
inherit stateVersion;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user