Skip to content

1.2.1

Choose a tag to compare

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

1.2.1 (2025-07-11)

Usage

Import Examples

// Service unit
amends "package://pkl.declix.org/pkl-systemd@1.2.1#/Service.pkl"

// Timer unit
amends "package://pkl.declix.org/pkl-systemd@1.2.1#/Timer.pkl"

// Socket unit
amends "package://pkl.declix.org/pkl-systemd@1.2.1#/Socket.pkl"

// Mount unit
amends "package://pkl.declix.org/pkl-systemd@1.2.1#/Mount.pkl"

// Target unit
amends "package://pkl.declix.org/pkl-systemd@1.2.1#/Target.pkl"

// Path unit
amends "package://pkl.declix.org/pkl-systemd@1.2.1#/Path.pkl"

// Swap unit
amends "package://pkl.declix.org/pkl-systemd@1.2.1#/Swap.pkl"

// Automount unit
amends "package://pkl.declix.org/pkl-systemd@1.2.1#/Automount.pkl"

// Slice unit
amends "package://pkl.declix.org/pkl-systemd@1.2.1#/Slice.pkl"

// Scope unit
amends "package://pkl.declix.org/pkl-systemd@1.2.1#/Scope.pkl"

Installation

Add to your PklProject dependencies:

dependencies {
    ["systemd"] = "package://pkl.declix.org/pkl-systemd@1.2.1"
}

Quick Start

amends "package://pkl.declix.org/pkl-systemd@1.2.1#/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

  • add usage examples with correct URLs to automated release notes (cd7e24b)