Commit 447c12c4 authored by nikstur's avatar nikstur
Browse files

nixos/system-sysusers: include username in assertion

parent b87850d1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -73,9 +73,9 @@ in
        message = "config.users.mutableUsers requires config.system.etc.overlay.enable.";
      }
    ] ++ (lib.mapAttrsToList
      (_username: opts: {
      (username: opts: {
        assertion = !opts.isNormalUser;
        message = "systemd-sysusers doesn't create normal users. You can currently only use it to create system users.";
        message = "${username} is a normal user. systemd-sysusers doesn't create normal users, only system users.";
      })
      userCfg.users)
    ++ lib.mapAttrsToList