my new youtube and minecraft block script

This commit is contained in:
Sebastian Moser
2024-07-16 18:11:43 +02:00
parent 724aac69ac
commit 4485209a15
4 changed files with 230 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
{ pkgs, ... }:
let
yt_block = 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";
};
wantedBy = [ "multi-user.target" ];
};
environment.systemPackages = [ yt_block ];
}