config: update home-manager config to use nixpkgs.legacyPackages

We can configure most of the nixpkgs option through the `nixpkgs`
attribute anyways.
This commit is contained in:
Gabriel Arazas 2023-11-09 09:40:56 +08:00
parent 2be753489e
commit 7c2a3dcf7e
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -378,9 +378,7 @@
let
name = metadata._name;
system = metadata._system;
pkgs = import inputs."${metadata.nixpkgs-channel or "nixpkgs"}" {
inherit system overlays;
};
pkgs = inputs."${metadata.nixpkgs-channel or "nixpkgs"}".legacyPackages."${system}";
path = ./users/home-manager/${name};
extraModules = [
({ pkgs, config, ... }: {