mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21: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";
|
system.stateVersion = "24.11";
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
domains.assertUnique = true;
|
||||||
|
ports.assertUnique = true;
|
||||||
|
};
|
||||||
|
|
||||||
custom = {
|
custom = {
|
||||||
sops.enable = true;
|
sops.enable = true;
|
||||||
boot.loader.systemdBoot.enable = true;
|
boot.loader.systemdBoot.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,11 @@
|
||||||
{
|
{
|
||||||
system.stateVersion = "24.11";
|
system.stateVersion = "24.11";
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
domains.assertUnique = true;
|
||||||
|
ports.assertUnique = true;
|
||||||
|
};
|
||||||
|
|
||||||
custom = {
|
custom = {
|
||||||
sops.enable = true;
|
sops.enable = true;
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,11 @@
|
||||||
{
|
{
|
||||||
system.stateVersion = "24.11";
|
system.stateVersion = "24.11";
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
domains.assertUnique = true;
|
||||||
|
ports.assertUnique = true;
|
||||||
|
};
|
||||||
|
|
||||||
custom = {
|
custom = {
|
||||||
sops.enable = true;
|
sops.enable = true;
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,7 @@ in
|
||||||
|> lib.concatLists;
|
|> lib.concatLists;
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
};
|
};
|
||||||
assertUnique = lib.mkEnableOption "" // {
|
assertUnique = lib.mkEnableOption "";
|
||||||
default = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.assertUnique {
|
config = lib.mkIf cfg.assertUnique {
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,7 @@ in
|
||||||
type = lib.types.listOf lib.types.port;
|
type = lib.types.listOf lib.types.port;
|
||||||
default = [ ];
|
default = [ ];
|
||||||
};
|
};
|
||||||
assertUnique = lib.mkEnableOption "" // {
|
assertUnique = lib.mkEnableOption "";
|
||||||
default = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.assertUnique {
|
config = lib.mkIf cfg.assertUnique {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue