From 3058034f82ba38314b9f4ce0f9b0055522c44f47 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 2 Jan 2021 16:21:34 +0100 Subject: fix user-profiles --- user-profiles/core.nix | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) (limited to 'user-profiles/core.nix') diff --git a/user-profiles/core.nix b/user-profiles/core.nix index 6f473b1a..91685611 100644 --- a/user-profiles/core.nix +++ b/user-profiles/core.nix @@ -1,26 +1,8 @@ -{ flake, userName, lib, customUtils, ... }: -let - userProfileSet = customUtils.types.attrNameSet (lib.zipAttrs (lib.attrValues flake.nixosModules.userProfiles)); -in { - options = { - users.users = lib.mkOption { - type = lib.types.attrsOf (lib.types.submodule { - options.profiles = lib.mkOption { - type = userProfileSet; - default = []; - description = '' - Set (list without duplicates) of ‘userProfiles’ enabled for this user - ''; - }; - }); - }; - }; - - config = { - users.users.${userName} = {}; # Just make sure the user is created +{ userName, ... }: +{ + users.users.${userName} = {}; # Just make sure the user is created - home-manager.users.${userName} = { - manual.manpages.enable = true; - }; + home-manager.users.${userName} = { + manual.manpages.enable = true; }; } -- cgit v1.2.3