From 83b1aaa46affcdc6492c32582c1c784969b07c9e Mon Sep 17 00:00:00 2001 From: Patrick Menking Date: Tue, 17 Sep 2024 14:57:22 -0400 Subject: [PATCH] Move mkIf to safe evaluation --- modules/users/crow.nix | 7 ------- modules/users/default.nix | 15 ++++++--------- 2 files changed, 6 insertions(+), 16 deletions(-) delete mode 100644 modules/users/crow.nix 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" ]; + }; }