Move mkIf to safe evaluation

This commit is contained in:
Patrick Menking 2024-09-17 14:57:22 -04:00
parent 6dd1591319
commit 83b1aaa46a
2 changed files with 6 additions and 16 deletions

View file

@ -1,7 +0,0 @@
{ lib, config, pkgs, ...}: {
users.users.crow = {
isNormalUser = true;
initialPassword = "changeme";
extraGroups = [ "wheel" "networkmanager" ];
};
}

View file

@ -1,10 +1,7 @@
{ config, ... }: {
imports =
(
if config.users.crow.enable then
[./crow.nix]
else []
);
# ++ ( to add more, just move the ;
{ lib, config, pkgs, ...}: {
users.users.crow = lib.mkIf config.users.crow.enable {
isNormalUser = true;
initialPassword = "changeme";
extraGroups = [ "wheel" "networkmanager" ];
};
}