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