mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
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:
parent
aa2a21d0fc
commit
5f70747853
@ -382,8 +382,10 @@
|
|||||||
lib'.mapAttrs
|
lib'.mapAttrs
|
||||||
(filename: metadata:
|
(filename: metadata:
|
||||||
let
|
let
|
||||||
name = metadata.username or filename;
|
name = metadata.username or metadata._name or filename;
|
||||||
pkgs = import inputs.${metadata.nixpkgs-channel or "nixpkgs"} {};
|
pkgs = import inputs.${metadata.nixpkgs-channel or "nixpkgs"} {
|
||||||
|
system = metadata._system;
|
||||||
|
};
|
||||||
extraModules = [
|
extraModules = [
|
||||||
({ lib, pkgs, config, ... }: {
|
({ lib, pkgs, config, ... }: {
|
||||||
# Don't create the user directories since they are assumed to
|
# Don't create the user directories since they are assumed to
|
||||||
@ -407,7 +409,7 @@
|
|||||||
inherit pkgs extraModules;
|
inherit pkgs extraModules;
|
||||||
home-manager-channel = metadata.home-manager-channel or "home-manager";
|
home-manager-channel = metadata.home-manager-channel or "home-manager";
|
||||||
})
|
})
|
||||||
users;
|
(listImagesWithSystems users);
|
||||||
|
|
||||||
# Extending home-manager with my custom modules, if anyone cares.
|
# Extending home-manager with my custom modules, if anyone cares.
|
||||||
homeModules.default = import ./modules/home-manager { lib = lib'; };
|
homeModules.default = import ./modules/home-manager { lib = lib'; };
|
||||||
|
Loading…
Reference in New Issue
Block a user