diff options
| author | Caroline Larimore <caroline@larimo.re> | 2025-02-05 23:45:38 -0800 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2025-04-14 18:58:46 -0700 |
| commit | 2a0cb8f8dd9596e2f5feab2e3d1b8b15cfcd424f (patch) | |
| tree | 2edb19f4ce9a9fef7f52e726ee94d04e696042e5 | |
| parent | 4c1ce39464839cdc0ead03068af287e0f19efb79 (diff) | |
migration: timezones
| -rw-r--r-- | hosts/c-pc/configuration.nix | 2 | ||||
| -rw-r--r-- | snowfall/modules/nixos/system/default.nix | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/hosts/c-pc/configuration.nix b/hosts/c-pc/configuration.nix index 2de93cb..acf8ab2 100644 --- a/hosts/c-pc/configuration.nix +++ b/hosts/c-pc/configuration.nix @@ -10,8 +10,6 @@ programs.fuse.userAllowOther = true; - time.timeZone = "America/Los_Angeles"; - users.users = { root.hashedPasswordFile = "/secrets/passwords/root"; diff --git a/snowfall/modules/nixos/system/default.nix b/snowfall/modules/nixos/system/default.nix index 83263ba..96c5654 100644 --- a/snowfall/modules/nixos/system/default.nix +++ b/snowfall/modules/nixos/system/default.nix @@ -12,6 +12,11 @@ in { default = null; type = nullOr str; }; + + timezone = mkOption { + default = "America/Los_Angeles"; + type = nullOr str; + }; }; config = { @@ -19,5 +24,7 @@ in { networking.hostName = cfg.hostname; networking.hostId = cfg.id; + + time.timeZone = cfg.timezone; }; } |