Files
home-manager/tests/modules/programs/rclone/basic-configuration.nix
K900 0668fdbc15 treewide: stdenv.is* -> stdenv.hostPlatform.is*
Nixpkgs officialy deprecated the former.
2026-08-13 08:40:58 +02:00

23 lines
462 B
Nix

{ lib, pkgs, ... }:
lib.mkMerge [
{
programs.rclone = {
enable = true;
remotes.myremote.config.type = "local";
};
}
(lib.mkIf pkgs.stdenv.hostPlatform.isLinux {
nmt.script = ''
assertFileExists home-files/.config/systemd/user/rclone-config.service
'';
})
(lib.mkIf pkgs.stdenv.hostPlatform.isDarwin {
nmt.script = ''
assertFileExists LaunchAgents/org.nix-community.home.rclone-config.plist
'';
})
]