config: update arguments for importing nixpkgs

Most of the things should be configured in their respective
environments already.
This commit is contained in:
Gabriel Arazas 2023-12-17 11:57:14 +08:00
parent 3d4b8fa578
commit 90a54db08b
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -390,7 +390,7 @@
(filename: metadata: (filename: metadata:
let let
name = metadata.username or filename; name = metadata.username or filename;
pkgs = import inputs.${metadata.nixpkgs-channel or "nixpkgs"} { inherit overlays; }; pkgs = import inputs.${metadata.nixpkgs-channel or "nixpkgs"} {};
path = ./users/home-manager/${name}; path = ./users/home-manager/${name};
extraModules = [ extraModules = [
({ lib, pkgs, config, ... }: { ({ lib, pkgs, config, ... }: {
@ -445,7 +445,7 @@
let let
name = metadata._name; name = metadata._name;
nixpkgs-channel = metadata.nixpkgs-channel or "nixpkgs"; nixpkgs-channel = metadata.nixpkgs-channel or "nixpkgs";
pkgs = import inputs.${nixpkgs-channel} { inherit system overlays; }; pkgs = import inputs.${nixpkgs-channel} {};
format = metadata.format or "iso"; format = metadata.format or "iso";
in in
lib'.nameValuePair name (mkImage { lib'.nameValuePair name (mkImage {