1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-26 03:39:47 +01:00
home-manager/tests/modules/services/dropbox/basic-configuration.nix
eyjhb 7b73f84071
dropbox: add module
Ability to control Dropbox daemon, if it should start and where to
place the files.

PR #1391
2020-07-25 23:12:33 +02:00

25 lines
467 B
Nix

{ config, pkgs, ... }:
{
config = {
services.dropbox = {
enable = true;
path = "${config.home.homeDirectory}/dropbox";
};
nixpkgs.overlays = [
(self: super: {
dropbox-cli = pkgs.writeScriptBin "dummy-dropbox-cli" "" // {
outPath = "@dropbox-cli@";
};
})
];
nmt.script = ''
serviceFile=home-files/.config/systemd/user/dropbox.service
assertFileExists $serviceFile
'';
};
}