Daniel Siepmann
bb64b6d859
The os update and backup now include etckeeper as its part of the workflow. The os updates now have the same name on all systems. That should reduce friction, same command for same workflow, just different implementation.
26 lines
412 B
Nix
26 lines
412 B
Nix
{
|
|
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
|
|
'';
|
|
}
|