This commit is contained in:
Tyler Mayoff 2025-05-01 19:27:36 +00:00
parent 2b19363fbc
commit f6e4dea468
3 changed files with 35 additions and 15 deletions

View file

@ -156,6 +156,38 @@ in {
};
};
systemd.services."restore-nextcloud" = {
script = ''
# Remove keys
${secrets}
printf "\nRestore nextcloud \n"
${pkgs.restic}/bin/restic -r "$RESTIC_REPOSITORY/NextCloud" restore latest -vvv --target /
# ${pkgs.restic}/bin/restic -r "$RESTIC_REPOSITORY/NextCloud" check -vvv
'';
serviceConfig = {
Type = "simple";
User = "root";
};
};
systemd.services."restore-backups" = {
script = ''
# Remove keys
${secrets}
printf "\nRestore nextcloud \n"
${pkgs.restic}/bin/restic -r "$RESTIC_REPOSITORY/Backups" restore latest -vvv --target /
# ${pkgs.restic}/bin/restic -r "$RESTIC_REPOSITORY/NextCloud" check -vvv
'';
serviceConfig = {
Type = "simple";
User = "root";
};
};
programs.fish.enable = true;
# List services that you want to enable:

View file

@ -28,23 +28,11 @@
options = ["fmask=0022" "dmask=0022"];
};
fileSystems."/mnt/store" = {
device = "nix-store";
fileSystems."/mnt/user" = {
device = "array";
fsType = "9p";
};
fileSystems."/nix/store" = {
depends = [
"/mnt/store"
];
device = "/mnt/store";
fsType = "none";
options = [
"bind"
];
};
swapDevices = [];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking