mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 23: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
|
in
|
||||||
{
|
{
|
||||||
flake = {
|
flake = {
|
||||||
nixosConfigurations = lib.mkMerge [
|
nixosConfigurations =
|
||||||
(mkHost "alto")
|
"${self}/hosts"
|
||||||
(mkHost "cirrus")
|
|> builtins.readDir
|
||||||
(mkHost "fern")
|
|> lib.filterAttrs (_: type: type == "directory")
|
||||||
(mkHost "north")
|
|> lib.concatMapAttrs (name: _: mkHost name);
|
||||||
];
|
|
||||||
|
|
||||||
deploy.nodes = {
|
deploy.nodes = {
|
||||||
alto = {
|
alto = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue