nixpkgs/home/packages/custom/update-ubuntu-system/default.nix

26 lines
412 B
Nix
Raw Normal View History

{
writeShellApplication
, callPackage
}:
writeShellApplication {
name = "custom-update-operating-system";
runtimeInputs = [
(callPackage ../push-etckeeper { })
];
text = ''
sudo apt update
sudo apt list --upgradable
sudo apt upgrade -V -y
sudo apt autoremove -y
custom-push-etckeeper
sudo fwupdmgr refresh
sudo fwupdmgr get-updates
fwupdmgr update -y
'';
}