From 8c946f2d3b36c8e34c1fba4df314f03b74d25a34 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') 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