1
Fork 0
This commit is contained in:
caem 2025-01-23 15:46:27 +01:00
parent 16912f4b92
commit f236f3add6
Signed by: caem
GPG key ID: 69A830D03203405F
3 changed files with 5 additions and 2 deletions

View file

@ -46,6 +46,7 @@
nixpkgs = nixpkgs; nixpkgs = nixpkgs;
inputs = inputs; inputs = inputs;
user = "caem"; user = "caem";
flakeRoot = ./.;
modules = [ modules = [
impermanence.nixosModules.impermanence impermanence.nixosModules.impermanence
disko.nixosModules.disko disko.nixosModules.disko

View file

@ -6,6 +6,7 @@
inputs, inputs,
modules, modules,
user, user,
flakeRoot,
}: builtins.listToAttrs (builtins.map (host: { }: builtins.listToAttrs (builtins.map (host: {
name = host; name = host;
value = nixpkgs.lib.nixosSystem { value = nixpkgs.lib.nixosSystem {
@ -18,6 +19,7 @@
inherit inputs; inherit inputs;
inherit lib; inherit lib;
username = user; username = user;
rootDir = flakeRoot;
}; };
}; };
}) (lib.getDirsInDir ../hosts)); }) (lib.getDirsInDir ../hosts));

View file

@ -1,4 +1,4 @@
{ lib, inputs, ... }: { lib, inputs, rootDir, ... }:
let let
/* /*
@ -14,7 +14,7 @@ let
(file: builtins.match ".*\.nix" (builtins.toString file) != null) (file: builtins.match ".*\.nix" (builtins.toString file) != null)
(lib.filesystem.listFilesRecursive ../../../overlays)); (lib.filesystem.listFilesRecursive ../../../overlays));
*/ */
c = builtins.trace ../../../overlays null; c = builtins.trace "${rootDir}/overlays" null;
a = builtins.trace (lib.filesystem.listFilesRecursive ./.) null; a = builtins.trace (lib.filesystem.listFilesRecursive ./.) null;
in { in {
nix = { nix = {