mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
50 lines
1.6 KiB
Nix
50 lines
1.6 KiB
Nix
{ config, lib, pkgs, ... }: {
|
|
imports = [
|
|
<niveum/modules/seafile.nix>
|
|
<niveum/modules/dropbox.nix>
|
|
];
|
|
|
|
niveum = {
|
|
dropbox.enable = true;
|
|
seafile.enable = true;
|
|
};
|
|
|
|
system.activationScripts.home-symlinks = ''
|
|
ln -sfn ${config.users.users.me.home}/cloud/syncthing/common/mahlzeit ${config.users.users.me.home}/mahlzeit
|
|
ln -sfn ${config.users.users.me.home}/cloud/Seafile/Wiki ${config.users.users.me.home}/notes
|
|
ln -sfn ${config.users.users.me.home}/cloud/Seafile/Uni ${config.users.users.me.home}/uni
|
|
'';
|
|
|
|
home-manager.users.me = {
|
|
services.nextcloud-client.enable = true;
|
|
};
|
|
|
|
services.syncthing = rec {
|
|
enable = true;
|
|
user = "kfm";
|
|
openDefaultPorts = true;
|
|
configDir = "/home/kfm/.config/syncthing";
|
|
dataDir = "/home/kfm/.config/syncthing";
|
|
declarative = rec {
|
|
cert = toString <system-secrets/syncthing/cert.pem>;
|
|
key = toString <system-secrets/syncthing/key.pem>;
|
|
devices = {
|
|
wilde.id =
|
|
"R6DEBD7-G5RYDKN-VFA3HPO-WX4DNVI-373F7OQ-AW5MZTT-3L4BDVW-Y6ROEAF";
|
|
heym.id =
|
|
"HLQSG3D-WSKLA6S-MEYQ3EU-GDBGABE-PY53RQ6-SWQAP2I-Z5MVBVX-MYPJXAM";
|
|
manakish.id =
|
|
"AJVBWR2-VFFAGZF-7ZF5JAX-T63GMOG-NZ446WK-MC5E6WK-6X6Q2HE-QQA2JQ3";
|
|
};
|
|
folders =
|
|
let syncthing-dir = "${config.users.users.me.home}/cloud/syncthing";
|
|
in {
|
|
"${syncthing-dir}/common".devices = [ "wilde" "manakish" ];
|
|
"${syncthing-dir}/library".devices = lib.attrNames devices;
|
|
"${syncthing-dir}/mundoiu".devices = lib.attrNames devices;
|
|
"${syncthing-dir}/music".devices = lib.attrNames devices;
|
|
};
|
|
};
|
|
};
|
|
}
|