diff --git a/modules/users/crow.nix b/modules/users/crow.nix deleted file mode 100644 index 655681e..0000000 --- a/modules/users/crow.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ lib, config, pkgs, ...}: { - users.users.crow = { - isNormalUser = true; - initialPassword = "changeme"; - extraGroups = [ "wheel" "networkmanager" ]; - }; -} diff --git a/modules/users/default.nix b/modules/users/default.nix index 60176fb..e9bb8b8 100644 --- a/modules/users/default.nix +++ b/modules/users/default.nix @@ -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" ]; + }; }