some testing
This commit is contained in:
parent
7b13770c94
commit
44fc5f9792
@ -1,4 +1,5 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
myData,
|
||||
@ -6,6 +7,13 @@
|
||||
}:
|
||||
let
|
||||
nvme = "/dev/disk/by-id/nvme-WD_PC_SN810_SDCQNRY-1T00-1201_23234W800017";
|
||||
timelapseScript = pkgs.writeShellApplication {
|
||||
name = "timelapse-test";
|
||||
text = ''
|
||||
date >> /tmp/timelapse-test
|
||||
sleep 5m
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
@ -53,6 +61,18 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
systemd = {
|
||||
timers.timelapse-test = {
|
||||
timerConfig.onCalendar = "*-*-* *:*:30";
|
||||
};
|
||||
services.timelapse-test.serviceConfig = {
|
||||
ExecStart = lib.getExe timelapseScript;
|
||||
StateDirectory = "timelapse-test";
|
||||
Type = "simple";
|
||||
RuntimeMaxSec = "30s";
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{
|
||||
device = "${nvme}-part2";
|
||||
|
@ -61,7 +61,7 @@ in
|
||||
StateDirectory = "timelapse-r11";
|
||||
DynamicUser = true;
|
||||
Type = "simple";
|
||||
RuntimeMaxSecs = "45s";
|
||||
RuntimeMaxSec = "45s";
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user