From 0563b14c6804a760bcf20b85efdc2780df57e635 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Thu, 17 Dec 2020 10:40:10 +0100 Subject: [PATCH] Exclude .git and vm disk images in deployment Fixes #8 (at least good enough for now) --- deploy.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/deploy.nix b/deploy.nix index c6fa56a..313454e 100644 --- a/deploy.nix +++ b/deploy.nix @@ -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;