More option simplification

This commit is contained in:
Jimbo 2025-03-01 17:48:06 -05:00
parent 8ac994204c
commit c4d69ff019
6 changed files with 13 additions and 24 deletions

View file

@ -3,22 +3,19 @@
imports = [ imports = [
./accounts ./accounts
./devices ./devices
./modules
./nix
./programs ./programs
./secrets ./secrets
./services ./services
./settings
]; ];
options.system = with lib; {
server.enable = mkEnableOption "Enable server apps and services";
};
config = {
networking = { networking = {
hostName = "rubble"; hostName = "rubble";
hostId = "e0b1fcef"; hostId = "e0b1fcef";
}; };
time.timeZone = "America/Toronto";
system.stateVersion = "24.11"; system.stateVersion = "24.11";
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
};
} }

View file

@ -1,4 +1,4 @@
{ ... }: { lib, ... }:
{ {
imports = [ imports = [
./cfdyndns ./cfdyndns
@ -10,4 +10,8 @@
./vaultwarden ./vaultwarden
./webserver ./webserver
]; ];
options.system = with lib; {
server.enable = mkEnableOption "Enable server apps and services";
};
} }

View file

@ -1,8 +0,0 @@
{ ... }:
{
imports = [
./modules
./nix
./timezone
];
}

View file

@ -1,4 +0,0 @@
{ ... }:
{
time.timeZone = "America/Toronto";
}