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

View file

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

View file

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

View file

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