tangled
alpha
login
or
join now
dunkirk.sh
/
dots
3
fork
atom
Kieran's opinionated (and probably slightly dumb) nix config
3
fork
atom
overview
issues
pulls
pipelines
bug: fix git fetch failing being fatal
dunkirk.sh
1 month ago
ed83c816
2f66f68e
verified
This commit was signed with the committer's
known signature
.
dunkirk.sh
SSH Key Fingerprint:
SHA256:DqcG0RXYExE26KiWo3VxJnsxswN1QNfTBvB+bdSpk80=
+3
-3
2 changed files
expand all
collapse all
unified
split
machines
terebithia
default.nix
modules
lib
mkService.nix
+1
-1
machines/terebithia/default.nix
···
481
enable = true;
482
domain = "control.dunkirk.sh";
483
deploy.repository = "https://tangled.org/dunkirk.sh/control";
484
-
deploy.autoUpdate = true;
485
secretsFile = config.age.secrets.control.path;
486
487
flags."map.dunkirk.sh" = {
···
481
enable = true;
482
domain = "control.dunkirk.sh";
483
deploy.repository = "https://tangled.org/dunkirk.sh/control";
484
+
deploy.autoUpdate = false;
485
secretsFile = config.age.secrets.control.path;
486
487
flags."map.dunkirk.sh" = {
+2
-2
modules/lib/mkService.nix
···
234
235
cd ${cfg.dataDir}/app
236
'' + lib.optionalString (cfg.deploy.enable && cfg.deploy.autoUpdate) ''
237
-
${pkgs.git}/bin/git fetch origin
238
-
${pkgs.git}/bin/git reset --hard origin/${cfg.deploy.branch}
239
'' + lib.optionalString (runtime == "bun") ''
240
241
if [ -f package.json ]; then
···
234
235
cd ${cfg.dataDir}/app
236
'' + lib.optionalString (cfg.deploy.enable && cfg.deploy.autoUpdate) ''
237
+
${pkgs.git}/bin/git fetch origin || true
238
+
${pkgs.git}/bin/git reset --hard origin/${cfg.deploy.branch} || true
239
'' + lib.optionalString (runtime == "bun") ''
240
241
if [ -f package.json ]; then