mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-09 16:33:57 -05:00
refactor: use nix-janitor from nixpkgs
This commit is contained in:
parent
22f86fc2c1
commit
23f243b94d
1 changed files with 1 additions and 11 deletions
|
|
@ -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 ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue