Generalize ddclient, generalize root reset, fix nextcloud, impermanence is fully working on Kitty.

This commit is contained in:
Jimbo 2025-01-19 15:31:02 -05:00
parent 3477841a82
commit 2784173155
12 changed files with 93 additions and 82 deletions

View file

@ -2,15 +2,15 @@
{
boot.initrd.systemd.services.root-reset = {
enable = true;
description = "Reset root and snapshot last boot";
description = "Create new and snapshot previous root";
wantedBy = [ "initrd.target" ];
before = [ "sysroot.mount" ];
after = [ "dev-${config.networking.hostName}-root.device" ];
after = [ "initrd-root-device.target" ];
unitConfig.DefaultDependencies = "no";
serviceConfig.Type = "oneshot";
script = ''
mkdir -p /mnt
mount /dev/${config.networking.hostName}/root /mnt
mount -t btrfs /dev/${config.networking.hostName}/root /mnt
if [[ -e /mnt/prev ]]; then
btrfs subvolume delete /mnt/prev