{ pkgs, ... }: { environment.systemPackages = [ (pkgs.writeShellApplication { name = "nix-cleanup"; runtimeInputs = with pkgs; [ coreutils-full util-linux findutils btrfs-progs nix ]; text = builtins.readFile ./cleanup.sh; }) ]; }