Add system.timeZone option

This commit is contained in:
Joshua Yuen 2025-07-27 16:28:12 -04:00
parent b98d397329
commit aee28b2757
Signed by: josh
GPG Key ID: 502720BC22ED411C
3 changed files with 27 additions and 0 deletions

View File

@ -1,6 +1,12 @@
{ {
config,
lib,
... ...
}: }:
with lib;
let
cfg = config.system;
in
{ {
nix = { nix = {
settings = { settings = {
@ -10,5 +16,8 @@
]; ];
}; };
}; };
time.timeZone = cfg.timeZone;
system.stateVersion = "25.05"; system.stateVersion = "25.05";
} }

View File

@ -7,6 +7,7 @@
./hyprland.nix ./hyprland.nix
./plasma.nix ./plasma.nix
./shell.nix ./shell.nix
./system.nix
./zsh.nix ./zsh.nix
]; ];
} }

View File

@ -0,0 +1,17 @@
{
config,
lib,
...
}:
with lib;
let
cfg = config.system;
in
{
options.system = {
timeZone = mkOption {
type = types.str;
default = "US/Eastern";
};
};
}