summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2023-01-02 18:47:14 +0100
committerlassulus <lassulus@lassul.us>2023-01-02 18:47:14 +0100
commitd5a4c2181dcbd12fbb94d5bd7dcbf7f4f89763a8 (patch)
tree4058057e1a77a5f59f0ec07b77ef729780c2b8aa
parent767c6fbd14fc8e5eb73cea2f738af88083fcea32 (diff)
l sync-containers3: create dir, fix symlink
-rw-r--r--lass/3modules/sync-containers3.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/lass/3modules/sync-containers3.nix b/lass/3modules/sync-containers3.nix
index 1a006835d..e9f708690 100644
--- a/lass/3modules/sync-containers3.nix
+++ b/lass/3modules/sync-containers3.nix
@@ -50,7 +50,8 @@ in {
wantedBy = [ "multi-user.target" ];
serviceConfig.ExecStart = pkgs.writers.writeDash "autoswitch" ''
set -efu
- ln -frs /var/state/var_src /var/src
+ mkdir -p /var/state/var_src
+ ln -Tfrs /var/state/var_src /var/src
if test -e /var/src/nixos-config; then
/run/current-system/sw/bin/nixos-rebuild -I /var/src switch || :
fi