host(koumakan): tune more permissions

Changed files
+5 -2
systems
koumakan
services
+3
systems/koumakan/services/nginx.nix
···
brotli
];
};
+
+
# necessary for stuff like backup-public.nix and user.nix
+
systemd.services.nginx.serviceConfig.ProtectHome = "tmpfs";
}
+1 -1
systems/koumakan/services/static-sites/backup-public.nix
···
};
};
-
systemd.services.nginx.serviceConfig.ReadOnlyPaths = lib.singleton "/home/backup/public";
+
systemd.services.nginx.serviceConfig.BindReadOnlyPaths = lib.singleton "/home/backup/public";
users.users.nginx.extraGroups = lib.singleton config.users.users.backup.name;
}
+1 -1
systems/koumakan/services/static-sites/user.nix
···
extraConfig = "autoindex on;";
};
};
-
systemd.services.nginx.serviceConfig.ReadOnlyPaths = lib.singleton "/home/cassie/Web";
+
systemd.services.nginx.serviceConfig.BindReadOnlyPaths = lib.singleton "/home/cassie/Web";
}