mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Auto-declare hosts from hosts directory
This commit is contained in:
parent
9b2bf9686e
commit
6b02a9c967
1 changed files with 5 additions and 6 deletions
|
|
@ -33,12 +33,11 @@ let
|
|||
in
|
||||
{
|
||||
flake = {
|
||||
nixosConfigurations = lib.mkMerge [
|
||||
(mkHost "alto")
|
||||
(mkHost "cirrus")
|
||||
(mkHost "fern")
|
||||
(mkHost "north")
|
||||
];
|
||||
nixosConfigurations =
|
||||
"${self}/hosts"
|
||||
|> builtins.readDir
|
||||
|> lib.filterAttrs (_: type: type == "directory")
|
||||
|> lib.concatMapAttrs (name: _: mkHost name);
|
||||
|
||||
deploy.nodes = {
|
||||
alto = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue