mirror of
https://github.com/nix-community/home-manager
synced 2024-12-21 10:33:25 +00:00
26 lines
467 B
Nix
26 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
|
||
|
'';
|
||
|
|
||
|
};
|
||
|
}
|