From 5bc105e310691469b4fee31de75e35a8824a2a15 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Mon, 3 Jul 2023 01:35:05 +0200 Subject: [PATCH] add self.packages.nixos-rebuild-nom --- flake.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index d7d6f71..9d685a8 100644 --- a/flake.nix +++ b/flake.nix @@ -108,8 +108,11 @@ in { inherit inputs; - packages = forAllSystems({ pkgs, ... }: { - mpv-webm = pkgs.callPackage ./pkgs/mpv-webm.nix {}; # https://github.com/NixOS/nixpkgs/pull/238659 + packages = forAllSystems({ pkgs, flakes, ... }: { + mpv-webm = pkgs.callPackage ./pkgs/mpv-webm.nix {}; # TODO: https://github.com/NixOS/nixpkgs/pull/238659 + nixos-rebuild-nom = with pkgs; writeScriptBin "nixos-rebuild" '' + exec ${nixos-rebuild}/bin/nixos-rebuild "$@" |& ${nix-output-monitor}/bin/nom + ''; }); lib = { @@ -142,11 +145,8 @@ devShells = forAllSystems ({ pkgs, flakes, ... }: let mkShell = packages: pkgs.mkShell { inherit packages; }; - nixos-rebuild-nom = pkgs.writeScriptBin "nixos-rebuild" '' - exec ${pkgs.nixos-rebuild}/bin/nixos-rebuild "$@" |& ${pkgs.nix-output-monitor}/bin/nom - ''; envrc-pkgs = [ - nixos-rebuild-nom + flakes.self.pkgs.nixos-rebuild-nom pkgs.home-manager pkgs.nix-output-monitor pkgs.cachix @@ -159,7 +159,7 @@ pkgs.rsync ]); remoteenv = mkShell [ - nixos-rebuild-nom + flakes.self.pkgs.nixos-rebuild-nom ]; });