{ config, pkgs, lib, ... }: let script = pkgs.writeShellScriptBin "patos-upgrade.sh" '' systemd-sysupdate --verify=no systemd-sysupdate --verify=no update --reboot ''; in { environment.systemPackages = [ # pkgs.ncdu script ]; }