app/nut: Inherit container udev rules units
infra/cfg/pipeline/head This commit looks good Details

I missed getting the path and service unit file templates when rewriting
from KCL into CUE.
master
Dustin 2024-01-15 17:34:45 -06:00
parent 37d65984c7
commit 44926c944f
2 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,23 @@
package containerudev
templates: [
{
template: "common/reload-udev-rules.path"
dest: "/etc/systemd/system/reload-udev-rules.path"
hooks: {
changed: [
{run: "systemctl daemon-reload"},
{run: "systemctl try-restart reload-udev-rules.path"}
]
}
},
{
template: "common/reload-udev-rules.service"
dest: "/etc/systemd/system/reload-udev-rules.service"
hooks: {
changed: [
{run: "systemctl daemon-reload"},
]
}
}
]

View File

@ -1,6 +1,8 @@
package nut package nut
templates: [ import "du5t1n.me/cfg/schema/app/containerudev"
templates: containerudev.templates + [
{ {
template: "nut/nut.sysusers" template: "nut/nut.sysusers"
dest: "/etc/sysusers.d/nut.conf" dest: "/etc/sysusers.d/nut.conf"