hosts: switch to cr

This commit is contained in:
Charlie Root 2024-09-08 21:09:17 +02:00
commit 8a577bc38a
16 changed files with 4 additions and 2 deletions

View file

@ -8,13 +8,15 @@
inherit (lib.extendedLib.modules) mkModuleTree'; inherit (lib.extendedLib.modules) mkModuleTree';
inherit (lib.lists) concatLists flatten singleton; inherit (lib.lists) concatLists flatten singleton;
# NOTE: This was inspired by raf, and I find this
# to be quite a sane way of managing all modules in my flake.
mkModulesFor = hostname: mkModulesFor = hostname:
flatten ( flatten (
concatLists [ concatLists [
# Derive host specific module path from the first argument of the # Derive host specific module path from the first argument of the
# function. Should be a string, obviously. # function. Should be a string, obviously.
(singleton ./vali/${hostname}/default.nix) (singleton ./cr/${hostname}/default.nix)
# Recursively import all module trees (i.e. directories with a `module.nix`) # Recursively import all module trees (i.e. directories with a `module.nix`)
# for given moduleTree directories, and in addition, roles. # for given moduleTree directories, and in addition, roles.