mirror of
https://github.com/kmein/niveum
synced 2026-03-19 03:21:10 +01:00
feat(seafile): declaratively configure
This commit is contained in:
@@ -1,12 +1,10 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
{ config, lib, pkgs, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
<niveum/modules/seafile.nix>
|
|
||||||
<niveum/modules/dropbox.nix>
|
<niveum/modules/dropbox.nix>
|
||||||
];
|
];
|
||||||
|
|
||||||
niveum = {
|
niveum = {
|
||||||
dropbox.enable = true;
|
dropbox.enable = true;
|
||||||
seafile.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
system.activationScripts.home-symlinks = ''
|
system.activationScripts.home-symlinks = ''
|
||||||
|
|||||||
@@ -237,6 +237,7 @@ in {
|
|||||||
./retiolum.nix
|
./retiolum.nix
|
||||||
./rofi.nix
|
./rofi.nix
|
||||||
./spacetime.nix
|
./spacetime.nix
|
||||||
|
./seafile.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./sshd.nix
|
./sshd.nix
|
||||||
./sudo.nix
|
./sudo.nix
|
||||||
|
|||||||
20
configs/seafile.nix
Normal file
20
configs/seafile.nix
Normal 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 ];
|
||||||
|
}
|
||||||
@@ -3,6 +3,5 @@
|
|||||||
./constants.nix
|
./constants.nix
|
||||||
./dropbox.nix
|
./dropbox.nix
|
||||||
./retiolum.nix
|
./retiolum.nix
|
||||||
./seafile.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
{ pkgs, config, lib, ... }:
|
|
||||||
with lib;
|
|
||||||
let cfg = config.niveum.seafile;
|
|
||||||
in {
|
|
||||||
options.niveum.seafile = { enable = mkEnableOption "Seafile"; };
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
systemd.user.services.seafile = {
|
|
||||||
description = "Seafile synchronisation service";
|
|
||||||
after = [ "network.target" ];
|
|
||||||
wantedBy = [ "default.target" ];
|
|
||||||
script = "${pkgs.seafile-client}/bin/seafile-applet";
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.seafile-client pkgs.seafile-shared ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user