From 53cd1864dfc822990bff52fdacec297ca85428b6 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 27 Jul 2024 20:20:10 +0800 Subject: [PATCH] lib/utils: fix NixOS library subset --- lib/utils/nixos.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/utils/nixos.nix b/lib/utils/nixos.nix index 7244fbb7..e35b9df8 100644 --- a/lib/utils/nixos.nix +++ b/lib/utils/nixos.nix @@ -5,12 +5,6 @@ mapHomeManagerUser = user: settings: let homeDirectory = "/home/${user}"; - defaultUserConfig = { - extraGroups = lib.mkDefault [ "wheel" ]; - createHome = lib.mkDefault true; - home = lib.mkDefault homeDirectory; - isNormalUser = lib.mkForce true; - }; in ({ lib, ... }: { home-manager.users."${user}" = { ... }: { @@ -25,7 +19,12 @@ }; users.users."${user}" = lib.mkMerge [ - defaultUserConfig + { + extraGroups = lib.mkDefault [ "wheel" ]; + createHome = lib.mkDefault true; + home = lib.mkDefault homeDirectory; + isNormalUser = lib.mkForce true; + } settings ]; });