mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Only check domain and port uniqueness on servers
This commit is contained in:
parent
9a591d927a
commit
44520b3cd2
5 changed files with 17 additions and 6 deletions
|
|
@ -2,6 +2,11 @@
|
|||
{
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
meta = {
|
||||
domains.assertUnique = true;
|
||||
ports.assertUnique = true;
|
||||
};
|
||||
|
||||
custom = {
|
||||
sops.enable = true;
|
||||
boot.loader.systemdBoot.enable = true;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,11 @@
|
|||
{
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
meta = {
|
||||
domains.assertUnique = true;
|
||||
ports.assertUnique = true;
|
||||
};
|
||||
|
||||
custom = {
|
||||
sops.enable = true;
|
||||
boot.loader.grub.enable = true;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,11 @@
|
|||
{
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
meta = {
|
||||
domains.assertUnique = true;
|
||||
ports.assertUnique = true;
|
||||
};
|
||||
|
||||
custom = {
|
||||
sops.enable = true;
|
||||
boot.loader.grub.enable = true;
|
||||
|
|
|
|||
|
|
@ -21,9 +21,7 @@ in
|
|||
|> lib.concatLists;
|
||||
readOnly = true;
|
||||
};
|
||||
assertUnique = lib.mkEnableOption "" // {
|
||||
default = true;
|
||||
};
|
||||
assertUnique = lib.mkEnableOption "";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.assertUnique {
|
||||
|
|
|
|||
|
|
@ -13,9 +13,7 @@ in
|
|||
type = lib.types.listOf lib.types.port;
|
||||
default = [ ];
|
||||
};
|
||||
assertUnique = lib.mkEnableOption "" // {
|
||||
default = true;
|
||||
};
|
||||
assertUnique = lib.mkEnableOption "";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.assertUnique {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue