add self.packages.nixos-rebuild-nom

This commit is contained in:
Peder Bergebakken Sundt 2023-07-03 01:35:05 +02:00
parent c5e248e9ff
commit 5bc105e310
1 changed files with 7 additions and 7 deletions

View File

@ -108,8 +108,11 @@
in { in {
inherit inputs; inherit inputs;
packages = forAllSystems({ pkgs, ... }: { packages = forAllSystems({ pkgs, flakes, ... }: {
mpv-webm = pkgs.callPackage ./pkgs/mpv-webm.nix {}; # https://github.com/NixOS/nixpkgs/pull/238659 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 = { lib = {
@ -142,11 +145,8 @@
devShells = forAllSystems ({ pkgs, flakes, ... }: let devShells = forAllSystems ({ pkgs, flakes, ... }: let
mkShell = packages: pkgs.mkShell { inherit packages; }; 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 = [ envrc-pkgs = [
nixos-rebuild-nom flakes.self.pkgs.nixos-rebuild-nom
pkgs.home-manager pkgs.home-manager
pkgs.nix-output-monitor pkgs.nix-output-monitor
pkgs.cachix pkgs.cachix
@ -159,7 +159,7 @@
pkgs.rsync pkgs.rsync
]); ]);
remoteenv = mkShell [ remoteenv = mkShell [
nixos-rebuild-nom flakes.self.pkgs.nixos-rebuild-nom
]; ];
}); });