deploy: Only send the wanted machine configuration

This avoids having secrets that are managed with git-crypt on every
system.
pull/48/head
Simon Bruder 2021-02-07 11:30:42 +01:00
parent 1bf141ce03
commit 8037f5eb5e
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 8 additions and 0 deletions

View File

@ -34,6 +34,14 @@ let
type = "exclude";
pattern = "*.qcow2";
}
{
type = "include";
pattern = "/machines/${hostname}/";
}
{
type = "exclude";
pattern = "/machines/*/";
}
];
};
nixos-config.symlink = "config/machines/${hostname}/configuration.nix";