my new youtube and minecraft block script
This commit is contained in:
16
scripts/yt-block/module.nix
Normal file
16
scripts/yt-block/module.nix
Normal 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 ];
|
||||
}
|
||||
Reference in New Issue
Block a user