summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-08 16:19:10 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-08 16:19:10 +0100
commitcf797eca5f8d6a9c12530b4519cb100a46eef51c (patch)
treeef56c69006c42d6189ca4c70c3ebdd4435f2f992
parent2fd7d2c084920d544357185f68d238278ee5a429 (diff)
downloadnixos-cf797eca5f8d6a9c12530b4519cb100a46eef51c.tar
nixos-cf797eca5f8d6a9c12530b4519cb100a46eef51c.tar.gz
nixos-cf797eca5f8d6a9c12530b4519cb100a46eef51c.tar.bz2
nixos-cf797eca5f8d6a9c12530b4519cb100a46eef51c.tar.xz
nixos-cf797eca5f8d6a9c12530b4519cb100a46eef51c.zip
ymir: ...
-rwxr-xr-xsnap.py3
-rw-r--r--ymir.nix2
2 files changed, 2 insertions, 3 deletions
diff --git a/snap.py b/snap.py
index cc75739b..1151c718 100755
--- a/snap.py
+++ b/snap.py
@@ -1,5 +1,4 @@
1#! /usr/bin/env nix-shell 1#!/usr/bin/env python
2#! nix-shell -i python -p "python3.withPackages (p: with p; [dateutil python-unshare])"
3 2
4import os 3import os
5import argparse 4import argparse
diff --git a/ymir.nix b/ymir.nix
index 109e0889..311251bf 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -1170,7 +1170,7 @@ in rec {
1170 services.qemuGuest.enable = true; 1170 services.qemuGuest.enable = true;
1171 1171
1172 systemd.services."borgbackup@" = { 1172 systemd.services."borgbackup@" = {
1173 path = with pkgs; [ borgbackup utillinux ]; 1173 path = with pkgs; [ borgbackup utillinux (python3.withPackages (p: with p; [dateutil python-unshare])) ];
1174 1174
1175 serviceConfig = { 1175 serviceConfig = {
1176 ExecStart = "${./snap.py} %I"; 1176 ExecStart = "${./snap.py} %I";