reorganize

This commit is contained in:
2026-01-20 17:34:34 -06:00
parent 42bf08084e
commit 1ada91d5ef
3 changed files with 18 additions and 11 deletions

View File

@@ -128,7 +128,7 @@
(if let (if let
dir = builtins.readDir ./.; dir = builtins.readDir ./.;
in dir ? ${x} && dir.${x} == "directory" then in dir ? ${x} && dir.${x} == "directory" then
import ./${x}/home-manager import ../../homes/${x}/home-manager
else {}) else {})
(if inputs ? ${x} then inputs.${x} else {}) (if inputs ? ${x} then inputs.${x} else {})

View File

@@ -6,13 +6,4 @@
(file: (dir.${file} == "directory")) (file: (dir.${file} == "directory"))
(builtins.attrNames dir) (builtins.attrNames dir)
); );
config = {
programs.virt-manager.enable = true;
virtualisation.libvirtd.enable = true;
virtualisation.spiceUSBRedirection.enable = true;
};
} }

View File

@@ -1 +1,17 @@
{ ... }: {} { ... }: {
imports = let
dir = builtins.readDir ./.;
in builtins.map (x: ./${x}) (builtins.filter
(file: (dir.${file} == "directory"))
(builtins.attrNames dir)
);
config = {
programs.virt-manager.enable = true;
virtualisation.libvirtd.enable = true;
virtualisation.spiceUSBRedirection.enable = true;
};
}