new yt-block with unkillable working

This commit is contained in:
Sebastian Moser
2024-08-15 12:11:25 +02:00
parent def6f557d5
commit a8df39483b
4 changed files with 40 additions and 3 deletions

View File

@@ -1,14 +1,15 @@
{ pkgs, ... }:
let
yt_block = pkgs.callPackage ./app.nix {};
yt_block_starter = pkgs.callPackage ./app.nix {};
in {
systemd.services.yt-block = {
enable = true;
description = "Block Youtube";
serviceConfig = {
Restart = "always";
RestartSec = "60s";
ExecStart = "${yt_block}/bin/yt_block guard";
#RestartSec = "60s";
ExecStart = "${yt_block_starter}/bin/yt_block_starter";
};
wantedBy = [ "multi-user.target" ];
};