diff options
author | Soispha <soispha@vhack.eu> | 2023-09-10 08:30:22 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-09-10 08:30:22 +0200 |
commit | e573fc95e0d4e2376f8e8750331b4812e8aeebc3 (patch) | |
tree | 8f1e5a2417f8e611243b5eed2bbe6dc0496cd76c /sys/svcs/backup/default.nix | |
parent | Build(flake): Update (diff) | |
download | nixos-config-e573fc95e0d4e2376f8e8750331b4812e8aeebc3.tar.gz nixos-config-e573fc95e0d4e2376f8e8750331b4812e8aeebc3.zip |
Fix(treewide): Provide `snap-synced-forked` as overlay and thus as pkg
Diffstat (limited to '')
-rw-r--r-- | sys/svcs/backup/default.nix | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/sys/svcs/backup/default.nix b/sys/svcs/backup/default.nix index 171f1043..91433bf9 100644 --- a/sys/svcs/backup/default.nix +++ b/sys/svcs/backup/default.nix @@ -1,33 +1,12 @@ { lib, - sysLib, pkgs, config, ... }: let - snap-sync-forked = sysLib.writeShellScriptWithLibrary { - name = "snap-sync-forked"; - src = ./snap-sync-forked; - dependencies = with pkgs; [ - bash - btrfs-progs - coreutils - gawk - gnugrep - snapper - util-linux - - # optional: - libnotify - openssh - pv - rsync - sudo - ]; - }; backup-script = pkgs.writeShellScriptBin "backsnap" '' ${pkgs.util-linux}/bin/mount --mkdir "/dev/disk/by-uuid/${cfg.backupDiskUuid}" "/run/media/${cfg.backupDiskUuid}"; - ${snap-sync-forked}/bin/snap-sync-forked --UUID "${cfg.backupDiskUuid}" --noconfirm; + ${pkgs.snap-sync-forked}/bin/snap-sync-forked --UUID "${cfg.backupDiskUuid}" --noconfirm; ${pkgs.util-linux}/bin/umount "/run/media/${cfg.backupDiskUuid}"; ''; cfg = config.soispha.fs.backup; |