More option simplification
This commit is contained in:
parent
8ac994204c
commit
c4d69ff019
6 changed files with 13 additions and 24 deletions
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./modules
|
||||
./nix
|
||||
./timezone
|
||||
];
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
time.timeZone = "America/Toronto";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue