Fix base role
This commit is contained in:
parent
92fd1031b4
commit
c0eeecd181
1 changed files with 6 additions and 6 deletions
|
@ -7,7 +7,10 @@
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
options.custom = {
|
options.custom = {
|
||||||
base.enable = lib.mkEnableOption "base configuration for my hosts";
|
base.enable = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
networking.guaPref = lib.mkOption {
|
networking.guaPref = lib.mkOption {
|
||||||
type = with lib.types; nullOr (strMatching "^[0-9a-zA-Z:]+$");
|
type = with lib.types; nullOr (strMatching "^[0-9a-zA-Z:]+$");
|
||||||
default = "2001:14ba:a090:39";
|
default = "2001:14ba:a090:39";
|
||||||
|
@ -15,10 +18,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = lib.mkIf config.custom.base.enable {
|
||||||
custom.base.enable = lib.mkDefault true;
|
|
||||||
}
|
|
||||||
// (lib.mkIf config.custom.base.enable {
|
|
||||||
######################################## Packages ###############################################
|
######################################## Packages ###############################################
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
tmux
|
tmux
|
||||||
|
@ -196,5 +196,5 @@
|
||||||
efi.canTouchEfiVariables = lib.mkDefault true;
|
efi.canTouchEfiVariables = lib.mkDefault true;
|
||||||
timeout = lib.mkDefault 0;
|
timeout = lib.mkDefault 0;
|
||||||
};
|
};
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue