mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 20:40:24 +01:00
fix(tmpfiles rule): do not remove the contents of the directory
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
# Workaround for victoriametrics to store data in another place
|
||||
# https://www.freedesktop.org/software/systemd/man/latest/tmpfiles.d.html#Type
|
||||
systemd.tmpfiles.rules = [
|
||||
"D /data/apps/victoriametrics 0770 root victoriametrics-data - -"
|
||||
"d /data/apps/victoriametrics 0770 root victoriametrics-data - -"
|
||||
];
|
||||
|
||||
# Symlinks do not work with DynamicUser, so we should use bind mount here.
|
||||
|
||||
@@ -8,7 +8,7 @@ in {
|
||||
# Create Directories
|
||||
# https://www.freedesktop.org/software/systemd/man/latest/tmpfiles.d.html#Type
|
||||
systemd.tmpfiles.rules = [
|
||||
"D ${dataDir} 0755 ${user} ${user}"
|
||||
"d ${dataDir} 0755 ${user} ${user}"
|
||||
];
|
||||
|
||||
services.sftpgo = {
|
||||
|
||||
@@ -75,7 +75,7 @@ in {
|
||||
systemd.tmpfiles.rules = [
|
||||
"L+ /opt/cni/bin - - - - /var/lib/rancher/k3s/data/current/bin"
|
||||
# If you have disabled flannel, you will have to create the directory via a tmpfiles rule
|
||||
"D /var/lib/rancher/k3s/agent/etc/cni/net.d 0751 root root - -"
|
||||
"d /var/lib/rancher/k3s/agent/etc/cni/net.d 0751 root root - -"
|
||||
# Link the CNI config directory
|
||||
"L+ /etc/cni/net.d - - - - /var/lib/rancher/k3s/agent/etc/cni/net.d"
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user