diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-05-25 13:40:33 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-05-25 13:40:33 +0200 |
commit | 2dfef514292b666df6fdb19d192d54c3fdac9fe7 (patch) | |
tree | 9c15652c4e7a8ddeb29a52e7d3b1de3b03970cb5 /modules/system/services/nix/default.nix | |
parent | feat(modules/system/issue_file): Add the last modification date (diff) | |
download | nixos-config-2dfef514292b666df6fdb19d192d54c3fdac9fe7.tar.gz nixos-config-2dfef514292b666df6fdb19d192d54c3fdac9fe7.zip |
fix(modules/services/nix): Add my overlayed `nixpkgs` to the flake
Diffstat (limited to '')
-rw-r--r-- | modules/system/services/nix/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/system/services/nix/default.nix b/modules/system/services/nix/default.nix index 5766fcdd..e4fe11d1 100644 --- a/modules/system/services/nix/default.nix +++ b/modules/system/services/nix/default.nix @@ -4,6 +4,7 @@ nixpkgs_as_input, templates, self, + system, ... }: { nix = { @@ -14,7 +15,12 @@ registry = { nixpkgs.flake = nixpkgs_as_input; - n.flake = self; # Otherwise the nixpkgs config is not available + n.flake = + nixpkgs_as_input + // { + # Otherwise nixpkgs's config and overlays are not available: + outputs.legacyPackages."${system}" = pkgs; + }; t.flake = templates; |