Skip to content

1.2.2

Choose a tag to compare

@github-actions github-actions released this 11 Jul 02:43
· 7 commits to main since this release

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, Scope

Usage

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)