mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Refactor scripts
This commit is contained in:
parent
e558859799
commit
da7a7b7328
4 changed files with 18 additions and 14 deletions
|
|
@ -23,9 +23,11 @@
|
|||
(pkgs.writeShellApplication {
|
||||
name = "actual-restore";
|
||||
text = ''
|
||||
sudo systemctl stop actual.service
|
||||
sudo restic-actual restore latest --target /
|
||||
sudo systemctl start actual.service
|
||||
sudo bash -c "
|
||||
systemctl stop actual.service
|
||||
restic-actual restore latest --target /
|
||||
systemctl start actual.service
|
||||
"
|
||||
'';
|
||||
})
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue