diff options
author | edef <edef@edef.eu> | 2024-04-04 14:05:18 +0000 |
---|---|---|
committer | edef <edef@edef.eu> | 2024-04-04 19:46:58 +0000 |
commit | 725bb4e48c6491598f53b83c2dcd1a307115c6cc (patch) | |
tree | 5e801c1cd8677cefd283e63ec3d0fc5484df98d4 /nixos/modules | |
parent | d03a4482228d4d6dbd2d4b425b6dfcd49ebe765f (diff) |
lib: add xor
This gets clumsily reimplemented in various places, to no useful end.
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/config/users-groups.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/networking/kea.nix | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix index f9750b7263cac..07d9591cb446b 100644 --- a/nixos/modules/config/users-groups.nix +++ b/nixos/modules/config/users-groups.nix @@ -871,7 +871,6 @@ in { } { assertion = let - xor = a: b: a && !b || b && !a; isEffectivelySystemUser = user.isSystemUser || (user.uid != null && user.uid < 1000); in xor isEffectivelySystemUser user.isNormalUser; message = '' diff --git a/nixos/modules/services/networking/kea.nix b/nixos/modules/services/networking/kea.nix index 656ddd41fd12b..5fd6427c90f86 100644 --- a/nixos/modules/services/networking/kea.nix +++ b/nixos/modules/services/networking/kea.nix @@ -9,7 +9,6 @@ with lib; let cfg = config.services.kea; - xor = x: y: (!x && y) || (x && !y); format = pkgs.formats.json {}; chooseNotNull = x: y: if x != null then x else y; |