correct flake, global settings

This commit is contained in:
2026-03-02 23:48:52 +01:00
parent 53fee2bffb
commit c228634e80
2 changed files with 23 additions and 4 deletions

View File

@@ -6,9 +6,8 @@
import-tree.url = "github:vic/import-tree"; import-tree.url = "github:vic/import-tree";
disko.url = "github:nix-community/disko"; disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs"; disko.inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = inputs: inputs.flake-parts.lib.mkFlake {inherit inputs;} (inputs.import-tree ./modules); outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; }
(inputs.import-tree ./modules);
} }

View File

@@ -0,0 +1,20 @@
{ inputs, ... }: {
config = {
systems = [
"aarch64-linux"
"x86_64-linux"
];
perSystem = { pkgs, system, ... }: {
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
};
_module.args.pkgs-unstable = import inputs.nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
};
};
}