1
0
Fork 0

all: cache derivers

This commit is contained in:
Daniel Kempkens 2024-12-08 00:36:10 +01:00
parent 8dc142e60e
commit 4252e3590c
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
3 changed files with 4 additions and 2 deletions

View file

@ -10,7 +10,7 @@
virtualisation.oci-containers.containers = {
tubearchivist = {
image = "docker.io/bbilly1/tubearchivist:v0.4.10";
image = "docker.io/bbilly1/tubearchivist:v0.4.11";
dependsOn = [ "archivist-es" "archivist-redis" ];
ports = [ "127.0.0.1:9887:8000" ];
environmentFiles = [ config.age.secrets.tubearchivist-environment-ta.path ];

View file

@ -26,13 +26,15 @@ deploy-local-machine target type=defaultLocalType: _git-pull (build-local-machin
env TERM=xterm-256color {{type}}-rebuild switch --flake ".#{{target}}"
sync
attic push nifoc-systems /run/current-system
nix path-info --derivation /run/current-system | xargs attic push nifoc-systems ;
find ./.direnv -maxdepth 1 -name 'flake-profile-*' -type l -exec attic push nifoc-systems {} \;
# Deploy to a remote machine
[group('deploy')]
deploy-remote-machine target type=defaultRemoteType: _git-pull (build-remote-machine target type)
deploy --skip-checks '.#{{target}}'
ssh -t '{{target}}' attic push nifoc-systems /run/current-system
ssh -t '{{target}}' 'attic push nifoc-systems /run/current-system'
ssh -t '{{target}}' 'nix path-info --derivation /run/current-system | xargs attic push nifoc-systems ;'
_git-pull:
-git pull