diff --git a/flake.nix b/flake.nix index 4677624..b31045e 100644 --- a/flake.nix +++ b/flake.nix @@ -44,6 +44,10 @@ ) // { nixosConfigurations = let + default = { + dualBoot = false; + timeZone = null; + }; systems = [ { name = "nixos"; @@ -59,7 +63,7 @@ inherit system; modules = [ - ({ ... }: { config._module.args = { machineConfig = config; }; }) + ({ ... }: { config._module.args = { machineConfig = default // config; }; }) sops-nix.nixosModules.sops ./lib/configuration.nix diff --git a/lib/configuration.nix b/lib/configuration.nix index 0f880cb..e9028d9 100644 --- a/lib/configuration.nix +++ b/lib/configuration.nix @@ -25,5 +25,8 @@ # Networking networking.hostName = machineConfig.name; + + # Set time zone + time.timeZone = machineConfig.timeZone; }; }