bins/restic: remove
This commit is contained in:
parent
8710c0fa23
commit
7384bbdd4d
@ -1,20 +0,0 @@
|
||||
{ lib
|
||||
, pkgs
|
||||
, config
|
||||
, ...
|
||||
}:
|
||||
assert (builtins.length
|
||||
(lib.mapAttrsToList (a: _: a) config.services.restic.backups))
|
||||
<= 1; let
|
||||
resticBin = "${pkgs.restic}/bin/restic";
|
||||
cfg = config.services.restic.backups;
|
||||
bkp = lib.mapAttrs' (_: lib.nameValuePair "default") cfg;
|
||||
in
|
||||
''
|
||||
#!/usr/bin/env sh
|
||||
|
||||
set -e
|
||||
|
||||
export $(cat ${bkp.default.environmentFile})
|
||||
${resticBin} -r ${bkp.default.repository} --password-file ${bkp.default.passwordFile} $@
|
||||
''
|
@ -7,11 +7,6 @@
|
||||
}:
|
||||
let
|
||||
inherit (inputs.stable.legacyPackages.${pkgs.system}) chirp;
|
||||
restic = pkgs.writeScriptBin "restic" (import ../../bins/restic.nix {
|
||||
inherit pkgs;
|
||||
inherit lib;
|
||||
inherit config;
|
||||
});
|
||||
#myEmacs = pkgs.callPackage ../../configs/emacs.nix { };
|
||||
#doom-emacs = inputs.nix-doom-emacs.packages.${pkgs.system}.default.override {
|
||||
# doomPrivateDir = ../../configs/doom.d;
|
||||
|
@ -5,11 +5,6 @@
|
||||
, ...
|
||||
}:
|
||||
with pkgs; let
|
||||
restic = pkgs.writeScriptBin "restic" (import ../../bins/restic.nix {
|
||||
inherit pkgs;
|
||||
inherit lib;
|
||||
inherit config;
|
||||
});
|
||||
gqrss = callPackage ../../pkgs/gqrss.nix { inherit isUnstable; };
|
||||
icbirc = callPackage ../../pkgs/icbirc.nix { inherit isUnstable; };
|
||||
mcchunkie = callPackage ../../pkgs/mcchunkie.nix { inherit isUnstable; };
|
||||
|
Loading…
Reference in New Issue
Block a user