diff options
Diffstat (limited to 'tools/url-blocker/default.nix')
-rw-r--r-- | tools/url-blocker/default.nix | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/tools/url-blocker/default.nix b/tools/url-blocker/default.nix deleted file mode 100644 index 943644e5f542..000000000000 --- a/tools/url-blocker/default.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ pkgs, ... }: - -let - ghc = pkgs.haskellPackages.ghcWithPackages (hpkgs: [ - hpkgs.time - hpkgs.aeson - hpkgs.either - ]); - - # This is the systemd service unit - service = pkgs.stdenv.mkDerivation { - name = "url-blocker"; - src = builtins.path { path = ./.; name = "url-blocker"; }; - buildPhase = '' - ${ghc}/bin/ghc Main.hs - ''; - installPhase = '' - mv ./Main $out - ''; - }; - - # This is the systemd timer unit. - # Run once every minute. - # Give root privilege. - systemdUnit = { - systemd = { - timers.simple-timer = { - wantedBy = [ "timers.target" ]; - partOf = []; - }; - }; - }; -in null |