Repository navigation
1.2.2
1.2.2 (2025-07-11)
Installation
Option 1: PklProject Dependencies (Recommended)
Add to your PklProject dependencies:
dependencies {
["systemd"] = "package://pkl.declix.org/pkl-systemd@1.2.2"
}
Then import with short syntax:
import "@systemd/Service.pkl"
import "@systemd/Timer.pkl"
// etc.Option 2: Direct Import
// Service unit
amends "package://pkl.declix.org/pkl-systemd@1.2.2#/Service.pkl"
// Timer unit
amends "package://pkl.declix.org/pkl-systemd@1.2.2#/Timer.pkl"
// Socket unit
amends "package://pkl.declix.org/pkl-systemd@1.2.2#/Socket.pkl"
// Mount unit
amends "package://pkl.declix.org/pkl-systemd@1.2.2#/Mount.pkl"
// Other unit types: Target, Path, Swap, Automount, Slice, ScopeUsage
amends "@systemd/Service.pkl"
unit = new {
description = "My Service"
after = "network.target"
}
service = new {
type = "simple"
execStart = "/usr/bin/my-app"
restart = "on-failure"
}
install = new {
wantedBy = "multi-user.target"
}Bug Fixes
- improve release notes structure with clear installation options (4687169)