This commit is contained in:
LunarAkai 2025-03-14 23:35:36 +01:00
commit c8d762ee59
3 changed files with 16 additions and 33 deletions

View file

@ -1,7 +1,17 @@
{inputs}: let
{inputs, nixpkgs, home-manager, systems }: let
myLib = (import ./default.nix) {inherit inputs;};
outputs = inputs.self.outputs;
in rec {
# copied from https://github.com/Misterio77/nix-config/blob/main/flake.nix
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;
}
);
mkSystem = config:
inputs.nixpkgs.lib.nixosSystem {