This commit is contained in:
2024-03-04 14:20:18 +01:00
parent 4570b50523
commit 17c726e2bf
3 changed files with 29 additions and 36 deletions

View File

@@ -14,6 +14,11 @@
networking = {
hostName = "eliasLaptop";
networkmanager.enable = true;
# Needed for Dropbox.
firewall = {
allowedTCPPorts = [ 17500 ];
allowedUDPPorts = [ 17500 ];
};
};
# Set your time zone.
@@ -78,10 +83,34 @@
alacritty
dmenu
dropbox-cli
gnome.nautilus
lxqt.lxqt-policykit # provides a default authentication client for policykit
];
nixpkgs.config.allowUnfree = true;
# Dropbox settings
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;
};
};
# Enable zsh for setting it as shell for users.
programs.zsh.enable = true;