diff --git a/nix/configurations/hetzner_benchmark.nix b/nix/configurations/hetzner_benchmark.nix index a57cdc55..38d0d479 100644 --- a/nix/configurations/hetzner_benchmark.nix +++ b/nix/configurations/hetzner_benchmark.nix @@ -40,9 +40,12 @@ in # use lix everywhere and wrap it with nom ../overlays/lix.nix + ../overlays/nix-monitored.nix ]; }; + nix.package = pkgs.nix-monitored; + system.nixos = let rev = lib.substring 0 8 sources.nixpkgs.revision; diff --git a/nix/configurations/hydrogen.nix b/nix/configurations/hydrogen.nix index 7bc9620a..4eb889b4 100644 --- a/nix/configurations/hydrogen.nix +++ b/nix/configurations/hydrogen.nix @@ -45,9 +45,12 @@ in # use lix everywhere and wrap it with nom ../overlays/lix.nix + ../overlays/nix-monitored.nix ]; }; + nix.package = pkgs.nix-monitored; + system.nixos = let rev = lib.substring 0 8 sources.nixpkgs.revision; diff --git a/nix/overlays/nix-monitored.nix b/nix/overlays/nix-monitored.nix new file mode 100644 index 00000000..28f696bb --- /dev/null +++ b/nix/overlays/nix-monitored.nix @@ -0,0 +1,10 @@ +let + sources = import ../../npins; +in +# The final nix is lix in this case +final: prev: { + nix-monitored = sources.nix-monitored.asFlake.packages.${final.stdenv.hostPlatform.system}.default.override { + inherit (final) nix; + withNotify = false; # noisy, spams "command completed" even for nix shells + }; +} diff --git a/npins/sources.json b/npins/sources.json index e3c4a8b2..9a81a007 100644 --- a/npins/sources.json +++ b/npins/sources.json @@ -148,6 +148,20 @@ "url": "https://github.com/oxalica/nil/archive/504599f7e555a249d6754698473124018b80d121.tar.gz", "hash": "1mzx60999jciq2ax1l5ajmks6fb3cmjavn7fsyh4aysvcdgzrj6p" }, + "nix-monitored": { + "type": "Git", + "repository": { + "type": "GitHub", + "owner": "ners", + "repo": "nix-monitored" + }, + "branch": "master", + "submodules": false, + "revision": "60f3baa4701d58eab86c2d1d9c3d7e820074d461", + "url": "https://github.com/ners/nix-monitored/archive/60f3baa4701d58eab86c2d1d9c3d7e820074d461.tar.gz", + "hash": "1rdyjmxkvyqd5blbzbwfv2b99krx6rkpdzi1ckyby8i676gf9hv7", + "frozen": true + }, "nixos-hardware": { "type": "Git", "repository": {