tmpfiles: remove 10- prefix
This commit is contained in:
parent
b46521b2d9
commit
400893aca0
11 changed files with 16 additions and 18 deletions
options/custom
containers
files
programs
services
settings
|
@ -38,7 +38,7 @@ in {
|
|||
# TODO: Use nobody:nogroup instead when docker allows changing mount ownership
|
||||
# HACK: Copy with global read-only permissions in container directory which is assumed to be locked down
|
||||
# https://github.com/moby/moby/issues/2259
|
||||
systemd.tmpfiles.settings."10-coturn" = {
|
||||
systemd.tmpfiles.settings.coturn = {
|
||||
"${config.custom.containers.directory}/coturn/coturn.conf" = {
|
||||
C = {
|
||||
mode = "0444";
|
||||
|
|
|
@ -89,7 +89,7 @@ in {
|
|||
podman-tui
|
||||
];
|
||||
|
||||
systemd.tmpfiles.settings."10-containers" = {
|
||||
systemd.tmpfiles.settings.containers = {
|
||||
"/containers" = {
|
||||
d = {
|
||||
mode = "0700";
|
||||
|
|
|
@ -81,7 +81,7 @@ in {
|
|||
};
|
||||
|
||||
#!! Required for correct volume permissions
|
||||
systemd.tmpfiles.settings."10-netbox" = {
|
||||
systemd.tmpfiles.settings.netbox = {
|
||||
"${config.custom.containers.directory}/netbox/media" = {
|
||||
z = {
|
||||
mode = "0770";
|
||||
|
|
|
@ -45,14 +45,12 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
systemd.tmpfiles.settings = {
|
||||
"10-nextcloud" = {
|
||||
"/mnt/local/nextcloud" = {
|
||||
d = {
|
||||
mode = "0700";
|
||||
user = "33"; # www-data
|
||||
group = "33"; # www-data
|
||||
};
|
||||
systemd.tmpfiles.settings.nextcloud = {
|
||||
"/mnt/local/nextcloud" = {
|
||||
z = {
|
||||
mode = "0700";
|
||||
user = "33"; # www-data
|
||||
group = "33"; # www-data
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -10,7 +10,7 @@ in {
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
# Set /mnt permissions
|
||||
systemd.tmpfiles.settings."10-mnt" = {
|
||||
systemd.tmpfiles.settings.mnt = {
|
||||
"/mnt" = {
|
||||
z = {
|
||||
mode = "0755";
|
||||
|
|
|
@ -11,7 +11,7 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
# https://www.freedesktop.org/software/systemd/man/latest/tmpfiles.d.html
|
||||
# Create NixOS configuration directory and set permissions
|
||||
systemd.tmpfiles.settings."10-nixos" = {
|
||||
systemd.tmpfiles.settings.nixos = {
|
||||
"/etc/nixos" = {
|
||||
d = {
|
||||
mode = "0755";
|
||||
|
|
|
@ -28,7 +28,7 @@ in {
|
|||
};
|
||||
|
||||
systemd = {
|
||||
tmpfiles.settings."10-looking-glass" = {
|
||||
tmpfiles.settings.looking-glass = {
|
||||
${
|
||||
if cfg.kvmfr
|
||||
then "/dev/kvmfr0"
|
||||
|
|
|
@ -58,7 +58,7 @@ in {
|
|||
};
|
||||
|
||||
# Serve static files
|
||||
systemd.tmpfiles.settings."10-caddy" = {
|
||||
systemd.tmpfiles.settings.caddy = {
|
||||
"/srv/static" = {
|
||||
d = {
|
||||
user = "caddy";
|
||||
|
|
|
@ -141,7 +141,7 @@ in {
|
|||
|
||||
systemd = {
|
||||
# Ensure creation of config directory
|
||||
tmpfiles.settings."10-syncthing" = {
|
||||
tmpfiles.settings.syncthing = {
|
||||
${cfg.configDir} = {
|
||||
d = {
|
||||
user = cfg.user;
|
||||
|
|
|
@ -14,7 +14,7 @@ in {
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
# Enforce permissions for mountpoint directory
|
||||
systemd.tmpfiles.settings."10-storage" = {
|
||||
systemd.tmpfiles.settings.storage = {
|
||||
"/mnt/remote" = {
|
||||
d = {
|
||||
mode = "0755";
|
||||
|
|
|
@ -134,7 +134,7 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
tmpfiles.settings."10-vm" = {
|
||||
tmpfiles.settings.vm = {
|
||||
# HACK: Manually link image to default directory
|
||||
"/var/lib/libvirt/images/virtio-win.iso" = {
|
||||
"L+" = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue