···
*pointers by \@natsukagami*
···
from [nixos wiki](https://nixos.wiki/wiki/Nginx#LEMP_stack)
82
-
# adding a package with an overlay to a package set
82
+
## adding a package with an overlay to a package set
for package sets with a scope, you will have to do something like
···
however i do not think that's the best way lol
100
+
## importing nixpkgs with an empty attrset
102
+
ever had this in your flake.nix
106
+
outputs = { nixpkgs, ... }@inputs: let
107
+
pkgs = import nixpkgs {};
115
+
... and got fucked with this?
118
+
… while checking flake output 'nixosConfigurations'
120
+
at /nix/store/lz2ra1180qfffmpwg41jpyg1z602qdgx-source/flake.nix:50:5:
123
+
50| nixosConfigurations = {
125
+
51| koumakan = (import ./systems/koumakan { inherit pkgs lib inputs; });
127
+
… while checking the NixOS configuration 'nixosConfigurations.koumakan'
129
+
at /nix/store/lz2ra1180qfffmpwg41jpyg1z602qdgx-source/flake.nix:51:7:
131
+
50| nixosConfigurations = {
132
+
51| koumakan = (import ./systems/koumakan { inherit pkgs lib inputs; });
136
+
(stack trace truncated; use '--show-trace' to show the full trace)
138
+
error: attribute 'currentSystem' missing
140
+
at /nix/store/5c0k827yjq7j24qaq8l2fcnsxp7nv8v1-source/pkgs/top-level/impure.nix:17:43:
142
+
16| # (build, in GNU Autotools parlance) platform.
143
+
17| localSystem ? { system = args.system or builtins.currentSystem; }
148
+
just don't!!!11 remove the pkgs definition. (note that this only applies to `pkgs = import nixpkgs {};`)
151
+
> you shouldn't ever really import nixpkgs with an empty attrset either
153
+
> that causes it to fall back on guessing your system using `builtins.currentSystem`,
154
+
> which is impure and so not allowed in pure evaluation mode
Builtin stdlib functions search engine: https://noogle.dev/