nix: add modular nixos and home-manager configuration loading

This commit is contained in:
514fpv 2024-01-02 14:42:27 +08:00
parent 097508a015
commit d570e23fdc
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
6 changed files with 213 additions and 0 deletions

7
faucet/default.nix Normal file
View file

@ -0,0 +1,7 @@
{ lib, ... }: {
imports = lib.pipe ./. [
builtins.readDir
(lib.filterAttrs (n: ty: ty == "directory" && builtins.pathExists ./${n}/default.nix))
(lib.mapAttrsToList (n: _: ./${n}))
];
}