1
0
mirror of https://github.com/kmein/niveum synced 2026-03-21 04:11:07 +01:00

feat(seafile): declaratively configure

This commit is contained in:
2021-04-07 09:19:00 +02:00
parent 4f8f3751f4
commit 0f0b5658be
5 changed files with 21 additions and 20 deletions

20
configs/seafile.nix Normal file
View File

@@ -0,0 +1,20 @@
{ pkgs, config, ... }:
{
services.xserver.displayManager.sessionCommands = "${pkgs.seafile-client}/bin/seafile-applet";
home-manager.users.me.xdg.configFile = {
"Seafile/Seafile Client.conf".source = (pkgs.formats.ini {}).generate "Seafile Client.conf" {
Behavior = {
hideDockIcon = false;
hideMainWindowWhenStarted = true;
};
Settings = {
computerName = config.networking.hostName;
lastShiburl = "https://box.hu-berlin.de";
};
UsedServerAddresses.main = "https://box.hu-berlin.de";
};
};
environment.systemPackages = [ pkgs.seafile-client pkgs.seafile-shared ];
}