Rclone: Difference between revisions
m Fix systemd capitalization |
Proper way of writing in xdg config directory |
||
| Line 28: | Line 28: | ||
Home-manager users may wish to make a user-centric configuration of rclone. To do so add <code>pkgs.rclone</code> to your <code>~/.config/home-manager/home.nix</code> file. You can also configure remotes with home-manager. Here is an example below.<syntaxhighlight lang="nix"> | Home-manager users may wish to make a user-centric configuration of rclone. To do so add <code>pkgs.rclone</code> to your <code>~/.config/home-manager/home.nix</code> file. You can also configure remotes with home-manager. Here is an example below.<syntaxhighlight lang="nix"> | ||
home.packages = [ pkgs.rclone ]; | home.packages = [ pkgs.rclone ]; | ||
xdg.configFile."rclone/rclone.conf".text = '' | |||
[fichier] | [fichier] | ||
type = fichier | type = fichier | ||
user = foo@bar.com | user = foo@bar.com | ||
pass = password | pass = password | ||
''; | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 41: | Line 39: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
xdg.configFile."rclone/example.conf".text = '' | |||
[fichier] | [fichier] | ||
type = fichier | type = fichier | ||
user = foo@bar.com | user = foo@bar.com | ||
pass = p4ssw0rd | pass = p4ssw0rd | ||
''; | |||
}; | }; | ||