refactor: use nix-janitor from nixpkgs

This commit is contained in:
Gerg-L 2025-11-04 22:41:54 -05:00
parent 22f86fc2c1
commit 23f243b94d
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI

View file

@ -1,8 +1,6 @@
{
lib,
config,
pkgs,
nix-janitor,
}:
{
@ -14,16 +12,8 @@
nix-output-monitor # nom nom nom nom;
nix-tree # view packages
pciutils # lspci
nix-janitor
;
nix-janitor = pkgs.symlinkJoin {
name = "nix-janitor";
paths = [ nix-janitor.packages.default ];
nativeBuildInputs = [ pkgs.makeBinaryWrapper ];
postBuild = ''
wrapProgram "$out/bin/janitor" \
--suffix PATH : ${lib.makeBinPath [ config.nix.package ]}
'';
};
nixos-rebuild-ng = pkgs.symlinkJoin {
name = "nixos-rebuild-ng";
paths = [ pkgs.nixos-rebuild-ng ];