Add default settings for systems

This commit is contained in:
Manuel Thalmann 2024-05-07 13:57:46 +02:00
parent 837dbf7fa8
commit b6cc8a3f74
2 changed files with 8 additions and 1 deletions

View file

@ -44,6 +44,10 @@
) // { ) // {
nixosConfigurations = nixosConfigurations =
let let
default = {
dualBoot = false;
timeZone = null;
};
systems = [ systems = [
{ {
name = "nixos"; name = "nixos";
@ -59,7 +63,7 @@
inherit system; inherit system;
modules = [ modules = [
({ ... }: { config._module.args = { machineConfig = config; }; }) ({ ... }: { config._module.args = { machineConfig = default // config; }; })
sops-nix.nixosModules.sops sops-nix.nixosModules.sops
./lib/configuration.nix ./lib/configuration.nix

View file

@ -25,5 +25,8 @@
# Networking # Networking
networking.hostName = machineConfig.name; networking.hostName = machineConfig.name;
# Set time zone
time.timeZone = machineConfig.timeZone;
}; };
} }