Exclude .git and vm disk images in deployment

Fixes #8 (at least good enough for now)
restic-rest-server
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
1 changed files with 13 additions and 1 deletions

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;