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 =
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

View file

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