diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2023-04-10 20:56:16 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2023-04-10 20:56:16 +0200 |
| commit | c0e3d0e72d9d636728a5171511e3ce1003203567 (patch) | |
| tree | c75fbcfe4802c48fd5162792f38475d74d2cad57 /modules/borgcopy/default.nix | |
| parent | 24207674f36e900fd2aa51787cb70756413962c2 (diff) | |
| download | nixos-c0e3d0e72d9d636728a5171511e3ce1003203567.tar nixos-c0e3d0e72d9d636728a5171511e3ce1003203567.tar.gz nixos-c0e3d0e72d9d636728a5171511e3ce1003203567.tar.bz2 nixos-c0e3d0e72d9d636728a5171511e3ce1003203567.tar.xz nixos-c0e3d0e72d9d636728a5171511e3ce1003203567.zip | |
bump
Diffstat (limited to 'modules/borgcopy/default.nix')
| -rw-r--r-- | modules/borgcopy/default.nix | 40 |
1 files changed, 15 insertions, 25 deletions
diff --git a/modules/borgcopy/default.nix b/modules/borgcopy/default.nix index eae07dc8..afc6c37b 100644 --- a/modules/borgcopy/default.nix +++ b/modules/borgcopy/default.nix | |||
| @@ -3,33 +3,23 @@ | |||
| 3 | with lib; | 3 | with lib; |
| 4 | 4 | ||
| 5 | let | 5 | let |
| 6 | copyBorg = flakeInputs.mach-nix.lib.${config.nixpkgs.system}.buildPythonPackage rec { | 6 | copyBorg = |
| 7 | pname = "copy-borg"; | 7 | with pkgs.poetry2nix; |
| 8 | src = ./copy; | 8 | mkPoetryApplication { |
| 9 | version = "0.0.0"; | 9 | projectDir = cleanPythonSources { src = ./.; }; |
| 10 | ignoreDataOutdated = true; | ||
| 11 | 10 | ||
| 12 | requirements = '' | 11 | overrides = overrides.withDefaults (self: super: { |
| 13 | humanize | 12 | pyprctl = super.pyprctl.overridePythonAttrs (oldAttrs: { |
| 14 | tqdm | 13 | buildInputs = (oldAttrs.buildInputs or []) ++ [super.setuptools]; |
| 15 | python-dateutil | 14 | }); |
| 16 | xdg | 15 | inherit (pkgs.python3Packages) python-unshare; |
| 17 | python-unshare | 16 | }); |
| 18 | pyprctl | ||
| 19 | halo | ||
| 20 | ''; | ||
| 21 | postInstall = '' | ||
| 22 | wrapProgram $out/bin/copy_borg \ | ||
| 23 | --prefix PATH : ${makeBinPath (with pkgs; [util-linux borgbackup])}:${config.security.wrapperDir} | ||
| 24 | ''; | ||
| 25 | |||
| 26 | providers.python-unshare = "nixpkgs"; | ||
| 27 | overridesPre = [ | ||
| 28 | (self: super: { python-unshare = super.python-unshare.overrideAttrs (oldAttrs: { name = "python-unshare-0.2.1"; version = "0.2.1"; }); }) | ||
| 29 | ]; | ||
| 30 | 17 | ||
| 31 | # _.tomli.buildInputs.add = with pkgs."python3Packages"; [ flit-core ]; | 18 | postInstall = '' |
| 32 | }; | 19 | wrapProgram $out/bin/copy_borg \ |
| 20 | --prefix PATH : ${makeBinPath (with pkgs; [util-linux borgbackup])}:${config.security.wrapperDir} | ||
| 21 | ''; | ||
| 22 | }; | ||
| 33 | 23 | ||
| 34 | copyService = name: opts: nameValuePair "copy-borg@${utils.escapeSystemdPath name}" { | 24 | copyService = name: opts: nameValuePair "copy-borg@${utils.escapeSystemdPath name}" { |
| 35 | serviceConfig = { | 25 | serviceConfig = { |
