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 --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 83f92ac6..52d4026d 100644 --- a/flake.nix +++ b/flake.nix @@ -79,7 +79,7 @@ (inputs: inputs // { inherit userName; }) (outputs: { _file = dir + "/${path}"; } // outputs - // { imports = [self.nixosModules.userProfiles.${userName}.core] ++ (outputs.imports or []); }); + // { imports = defaultUserProfiles userName ++ (outputs.imports or []); }); mkUserProfile = userName: dir: path: profileName: let @@ -102,7 +102,7 @@ (inputs: inputs // { inherit userName; }) (outputs: { _file = dir + "/${path}"; } // outputs - // { imports = defaultUserProfiles userName ++ (outputs.imports or []); }); + // { imports = [self.nixosModules.users.${userName} or ({...}: { imports = defaultUserProfiles userName; })] ++ (outputs.imports or []); }); forAllSystems = f: mapAttrs f nixpkgs.legacyPackages; forAllUsers = genAttrs (unique (map accountUserName (attrNames self.nixosModules.accounts))); -- cgit v1.2.3