summaryrefslogtreecommitdiffstats
path: root/lass/2configs/green-host.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2019-04-18 10:16:02 +0200
committerlassulus <lassulus@lassul.us>2019-04-18 10:16:02 +0200
commit2a89d6587d5ee5d3151b5e5be05e152a539e78d0 (patch)
treeb62c261b932b1dae51728933235613b8d0a726ec /lass/2configs/green-host.nix
parent3adcf3a74c00b5e88b8c8c15d6aeb9ab3f9304db (diff)
l syncs: use permown, use attrs
Diffstat (limited to 'lass/2configs/green-host.nix')
-rw-r--r--lass/2configs/green-host.nix13
1 files changed, 6 insertions, 7 deletions
diff --git a/lass/2configs/green-host.nix b/lass/2configs/green-host.nix
index 860d7c113..1421eede7 100644
--- a/lass/2configs/green-host.nix
+++ b/lass/2configs/green-host.nix
@@ -20,13 +20,12 @@ with import <stockholm/lib>;
}
];
- lass.ensure-permissions = [
- { folder = "/var/lib/sync-containers"; owner = "root"; group = "syncthing"; }
- ];
-
- krebs.syncthing.folders = [
- { path = "/var/lib/sync-containers"; peers = [ "icarus" "skynet" "littleT" "shodan" ]; }
- ];
+ krebs.syncthing.folders."/var/lib/sync-containers".peers = [ "icarus" "skynet" "littleT" "shodan" ];
+ krebs.permown."/var/lib/sync-containers" = {
+ owner = "root";
+ group = "syncthing";
+ umask = "0007";
+ };
system.activationScripts.containerPermissions = ''
mkdir -p /var/lib/containers