diff --git a/configs/cloud.nix b/configs/cloud.nix index 5a647c7..874f8b9 100644 --- a/configs/cloud.nix +++ b/configs/cloud.nix @@ -4,7 +4,6 @@ - ]; @@ -20,9 +19,10 @@ services.syncthing = rec { enable = true; - group = "syncthing"; + user = "kfm"; openDefaultPorts = true; - configDir = "/var/lib/syncthing"; + configDir = "/home/kfm/.config/syncthing"; + dataDir = "/home/kfm/.config/syncthing"; }; krebs.syncthing = rec { @@ -37,10 +37,4 @@ folders."${config.users.users.me.home}/cloud/syncthing/library".peers = lib.attrNames peers; folders."${config.users.users.me.home}/cloud/syncthing/mundoiu".peers = lib.attrNames peers; }; - - krebs.permown = with lib; flip mapAttrs config.krebs.syncthing.folders (_: _: { - owner = config.users.users.me.name; - group = "syncthing"; - umask = "0007"; - }); } diff --git a/deploy.nix b/deploy.nix index 379ef4d..59d6ef0 100644 --- a/deploy.nix +++ b/deploy.nix @@ -32,7 +32,7 @@ let minimal = path: other: lib.evalSource [(niveum path // other)]; - regular = path: minimal path (niveum path // { + regular = path: minimal path { home-manager.git = { url = https://github.com/rycee/home-manager; ref = "2ccbf43"; @@ -41,7 +41,7 @@ let url = https://cgit.krebsco.de/stockholm; ref = "1340e3fb"; }; - }); + }; systems.scardanelli = pkgs.krops.writeDeploy "deploy-scardanelli" { source = regular ./systems/scardanelli;