From 4fc24b5c123938e37b546319e0f73003bdb37e50 Mon Sep 17 00:00:00 2001 From: cnst Date: Sat, 15 Jun 2024 18:41:47 +0200 Subject: [PATCH] hmmv2 --- flake.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 41e7ff9f..fec41c33 100644 --- a/flake.nix +++ b/flake.nix @@ -14,10 +14,20 @@ outputs = { self, nixpkgs, - home-manager, + home-manager + systems, ... } @ inputs: let 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 { # NixOS configuration entrypoint # Available through 'nixos-rebuild --flake .#your-hostname'