# Updates ## Nextcloud Update nextcloud to a new major version: - create state directories: `mkdir /tmp/var /tmp/data` - run vm state dirs to initialize state `sudo run-vm nextcloud --dummy-secrets --networking --var /tmp/var --data /tmp/data` - Update lock file `nix flake update --commit-lock-file` - Change services.nextcloud.package to the next version (do not skip major version upgrades) - change custom `extraApps` to the new version - TEST! - run vm again, it should successfully upgrade nextcloud from old to new version - run vm state dirs to initialize state `sudo run-vm nextcloud --dummy-secrets --networking --var /tmp/var --data /tmp/data`