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:
Donovan Glover 2024-04-03 09:43:02 -04:00
parent 26348c28ea
commit 019603afc7
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -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;
};
} }