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 = [
./accounts
./devices
./modules
./nix
./programs
./secrets
./services
./settings
];
options.system = with lib; {
server.enable = mkEnableOption "Enable server apps and services";
networking = {
hostName = "rubble";
hostId = "e0b1fcef";
};
config = {
networking = {
hostName = "rubble";
hostId = "e0b1fcef";
};
system.stateVersion = "24.11";
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
};
time.timeZone = "America/Toronto";
system.stateVersion = "24.11";
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
}

View file

@ -1,4 +1,4 @@
{ ... }:
{ lib, ... }:
{
imports = [
./cfdyndns
@ -10,4 +10,8 @@
./vaultwarden
./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";
}