move dropbox
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
{
|
||||
imports = [
|
||||
./alacritty
|
||||
./dropbox
|
||||
./git.nix
|
||||
./neovim
|
||||
./obs
|
||||
./rofi
|
||||
./signal
|
||||
./signal.nix
|
||||
./telegram.nix
|
||||
./wallpaper.nix
|
||||
./xmonad
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
{ pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
home.systemPackages = with pkgs; [ dropbox dropbox-cli ];
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 17500 ];
|
||||
allowedUDPPorts = [ 17500 ];
|
||||
};
|
||||
|
||||
systemd.user.services.dropbox = {
|
||||
description = "Dropbox";
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
environment = {
|
||||
QT_PLUGIN_PATH = "/run/current-system/sw/"
|
||||
+ pkgs.qt5.qtbase.qtPluginPrefix;
|
||||
QML2_IMPORT_PATH = "/run/current-system/sw/"
|
||||
+ pkgs.qt5.qtbase.qtQmlPrefix;
|
||||
};
|
||||
serviceConfig = {
|
||||
ExecStart = "${lib.getBin pkgs.dropbox}/bin/dropbox";
|
||||
ExecReload = "${lib.getBin pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||
KillMode = "control-group"; # upstream recommends process
|
||||
Restart = "on-failure";
|
||||
PrivateTmp = true;
|
||||
ProtectSystem = "full";
|
||||
Nice = 10;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user