deploy: Only send the wanted machine configuration

This avoids having secrets that are managed with git-crypt on every
system.
This commit is contained in:
Simon Bruder 2021-02-07 11:30:42 +01:00
parent 1bf141ce03
commit 8037f5eb5e
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

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";