From b6cc8a3f74a3fdcf16da4c6d3361671a2019ca2a Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 7 May 2024 13:57:46 +0200 Subject: [PATCH] Add default settings for systems --- flake.nix | 6 +++++- lib/configuration.nix | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) 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; }; }