This commit is contained in:
cnst
2024-06-15 18:41:47 +02:00
parent 4ce4dffc50
commit 4fc24b5c12

View File

@@ -14,10 +14,20 @@
outputs = { outputs = {
self, self,
nixpkgs, nixpkgs,
home-manager, home-manager
systems,
... ...
} @ inputs: let } @ inputs: let
inherit (self) outputs; inherit (self) outputs;
lib = nixpkgs.lib // home-manager.lib;
forEachSystem = f: lib.genAttrs (import systems) (system: f pkgsFor.${system});
pkgsFor = lib.genAttrs (import systems) (
system:
import nixpkgs {
inherit system;
config.allowUnfree = true;
}
);
in { in {
# NixOS configuration entrypoint # NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname' # Available through 'nixos-rebuild --flake .#your-hostname'