import "fmt"
import "sys"

$home = sys.getenv("HOME")

cron "purpleidea-oneshot" {
	session => true,
	trigger => "OnCalendar",
	time => "*:*:0",
}

svc "purpleidea-oneshot" {
	session => true,
}

# TODO: do we need a state => $const.res.file.state.exists specified here?
file [fmt.printf("%s/.config/systemd/user/purpleidea-oneshot.service", $home)] {}
