make option out of stateVersion
This commit is contained in:
parent
14fb3ac644
commit
b1623d82e2
6 changed files with 9 additions and 7 deletions
|
|
@ -6,10 +6,9 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
horseman.username = "horseman";
|
horseman.username = "horseman";
|
||||||
|
horseman.stateVersion = "24.11";
|
||||||
|
|
||||||
networking.hostName = "luna";
|
networking.hostName = "luna";
|
||||||
|
|
||||||
networking.extraHosts = "127.0.0.1 koala.rails.local";
|
networking.extraHosts = "127.0.0.1 koala.rails.local";
|
||||||
|
|
||||||
system.stateVersion = "24.11";
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,9 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
horseman.username = "horseman";
|
horseman.username = "horseman";
|
||||||
|
horseman.stateVersion = "24.11";
|
||||||
|
|
||||||
networking.hostName = "solis";
|
networking.hostName = "solis";
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [3000 3001];
|
networking.firewall.allowedTCPPorts = [3000 3001];
|
||||||
|
|
||||||
system.stateVersion = "24.11";
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
horseman.username = "horseman";
|
horseman.username = "horseman";
|
||||||
|
horseman.stateVersion = "24.11";
|
||||||
|
|
||||||
networking.hostName = "terra";
|
networking.hostName = "terra";
|
||||||
|
|
||||||
system.stateVersion = "24.11";
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
}: let
|
}: let
|
||||||
inherit (lib) mkEnableOption mkIf;
|
inherit (lib) mkEnableOption mkIf;
|
||||||
cfg = config.horseman.base.nix;
|
cfg = config.horseman.base.nix;
|
||||||
|
stateVersion = config.horseman.stateVersion;
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
horseman.base.nix = {
|
horseman.base.nix = {
|
||||||
|
|
@ -40,5 +41,7 @@ in {
|
||||||
experimental-features = "nix-command flakes";
|
experimental-features = "nix-command flakes";
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
system.stateVersion = stateVersion;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ in {
|
||||||
options = {
|
options = {
|
||||||
horseman = {
|
horseman = {
|
||||||
username = mkOption {type = types.str;};
|
username = mkOption {type = types.str;};
|
||||||
|
stateVersion = mkOption { type = types.str; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
inherit (lib) mkEnableOption mkIf;
|
inherit (lib) mkEnableOption mkIf;
|
||||||
cfg = config.horseman.users.default;
|
cfg = config.horseman.users.default;
|
||||||
username = config.horseman.username;
|
username = config.horseman.username;
|
||||||
|
stateVersion = config.horseman.stateVersion;
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
horseman.users.default = {
|
horseman.users.default = {
|
||||||
|
|
@ -22,7 +23,7 @@ in {
|
||||||
home = {
|
home = {
|
||||||
username = username;
|
username = username;
|
||||||
homeDirectory = "/home/${username}";
|
homeDirectory = "/home/${username}";
|
||||||
stateVersion = "24.11";
|
stateVersion = stateVersion;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue