Add default settings for systems
This commit is contained in:
parent
837dbf7fa8
commit
b6cc8a3f74
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -25,5 +25,8 @@
|
|||
|
||||
# Networking
|
||||
networking.hostName = machineConfig.name;
|
||||
|
||||
# Set time zone
|
||||
time.timeZone = machineConfig.timeZone;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue