config: set home-manager system for pure evaluation

I guess we'll have to deal with the naming thing sooner or later.
This commit is contained in:
Gabriel Arazas 2023-12-19 17:55:46 +08:00
parent aa2a21d0fc
commit 5f70747853
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -382,8 +382,10 @@
lib'.mapAttrs
(filename: metadata:
let
name = metadata.username or filename;
pkgs = import inputs.${metadata.nixpkgs-channel or "nixpkgs"} {};
name = metadata.username or metadata._name or filename;
pkgs = import inputs.${metadata.nixpkgs-channel or "nixpkgs"} {
system = metadata._system;
};
extraModules = [
({ lib, pkgs, config, ... }: {
# Don't create the user directories since they are assumed to
@ -407,7 +409,7 @@
inherit pkgs extraModules;
home-manager-channel = metadata.home-manager-channel or "home-manager";
})
users;
(listImagesWithSystems users);
# Extending home-manager with my custom modules, if anyone cares.
homeModules.default = import ./modules/home-manager { lib = lib'; };