Put the rclone config in the store

This commit is contained in:
Emi Simpson 2023-03-16 13:32:06 -04:00
parent b8afaddc38
commit ff730b8217
Signed by: Emi
GPG Key ID: A12F2C2FFDC3D847
1 changed files with 11 additions and 2 deletions

View File

@ -10,7 +10,6 @@
home.packages = with pkgs; with (import ../packages/all-packages.nix nixpkgs); [
restic
ripgrep
rclone
libqalculate
git-annex
git-annex-remote-rclone
@ -18,6 +17,17 @@
libwebp
bat
dw
(pkgs.symlinkJoin {
name = "rclone";
paths = [rclone];
buildInputs = [pkgs.makeWrapper];
rcloneConf = programs/rclone.conf;
postBuild = ''
wrapProgram $out/bin/rclone \
--add-flags "--config $rcloneConf"
'';
})
] ++ (import ../system/home-manager.nix).extraPackages pkgs;
editorconfig = {
enable = true;
@ -123,7 +133,6 @@
pinentryFlavor = "gnome3";
};
dconf.settings = import ./dconf.nix lib.hm.gvariant.mkTuple;
xdg.configFile."rclone/rclone.conf".source = programs/rclone.conf;
home.stateVersion = "22.11";
nixpkgs.config.allowUnfree = true;
targets.genericLinux.enable = true;