also refactor nixos modules
This commit is contained in:
parent
2471562583
commit
b37c5c0cbd
44 changed files with 10 additions and 2 deletions
8
clanServices/flake-module.nix
Normal file
8
clanServices/flake-module.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{...}: {
|
||||||
|
imports = ./.
|
||||||
|
|> builtins.readDir
|
||||||
|
|> builtins.attrsToList
|
||||||
|
|> builtins.map ({ name, value }: { type = value; path = ./. "/${name}/flake-module.nix" })
|
||||||
|
|> builtins.filter ({ type, path }: type == "directory" && (builtins.pathExists path))
|
||||||
|
|> builtins.map ({ name }: name);
|
||||||
|
}
|
||||||
1
clanServices/servarr/flake-module.nix
Normal file
1
clanServices/servarr/flake-module.nix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
{...}: {}
|
||||||
|
|
@ -110,6 +110,7 @@
|
||||||
home-manager.flakeModules.default
|
home-manager.flakeModules.default
|
||||||
terranix.flakeModule
|
terranix.flakeModule
|
||||||
./packages/flake-module.nix
|
./packages/flake-module.nix
|
||||||
|
./clanServices/flake-module.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
perSystem = {system, ...}: {
|
perSystem = {system, ...}: {
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
{lib, ...}: {
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue