Exclude .git and vm disk images in deployment

Fixes #8 (at least good enough for now)
This commit is contained in:
Simon Bruder 2020-12-17 10:40:10 +01:00
parent c63305cb6b
commit 0563b14c68
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -19,7 +19,19 @@ let
url = https://github.com/NixOS/nixpkgs;
shallow = true;
};
config.file = toString ./.;
config.file = {
path = toString ./.;
filters = [
{
type = "exclude";
pattern = ".git";
}
{
type = "exclude";
pattern = "*.qcow2";
}
];
};
nixos-config.symlink = "config/machines/${hostname}/configuration.nix";
secrets.pass = {
dir = toString ~/.password-store;