diff --git a/flake.lock b/flake.lock index 7b4c98b..888eba9 100644 --- a/flake.lock +++ b/flake.lock @@ -151,11 +151,11 @@ ] }, "locked": { - "lastModified": 1752544374, - "narHash": "sha256-ReX0NG6nIAEtQQjLqeu1vUU2jjZuMlpymNtb4VQYeus=", + "lastModified": 1749154018, + "narHash": "sha256-gjN3j7joRvT3a8Zgcylnd4NFsnXeDBumqiu4HmY1RIg=", "owner": "nix-community", "repo": "home-manager", - "rev": "2e00ed310c218127e02ffcf28ddd4e0f669fde3e", + "rev": "7aae0ee71a17b19708b93b3ed448a1a0952bf111", "type": "github" }, "original": { @@ -167,11 +167,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1752048960, - "narHash": "sha256-gATnkOe37eeVwKKYCsL+OnS2gU4MmLuZFzzWCtaKLI8=", + "lastModified": 1750083401, + "narHash": "sha256-ynqbgIYrg7P1fAKYqe8I/PMiLABBcNDYG9YaAP/d/C4=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "7ced9122cff2163c6a0212b8d1ec8c33a1660806", + "rev": "61837d2a33ccc1582c5fabb7bf9130d39fee59ad", "type": "github" }, "original": { @@ -215,11 +215,11 @@ }, "nixpkgsUnstable": { "locked": { - "lastModified": 1752480373, - "narHash": "sha256-JHQbm+OcGp32wAsXTE/FLYGNpb+4GLi5oTvCxwSoBOA=", + "lastModified": 1750134718, + "narHash": "sha256-v263g4GbxXv87hMXMCpjkIxd/viIF7p3JpJrwgKdNiI=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "62e0f05ede1da0d54515d4ea8ce9c733f12d9f08", + "rev": "9e83b64f727c88a7711a2c463a7b16eedb69a84c", "type": "github" }, "original": { @@ -231,11 +231,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1752436162, - "narHash": "sha256-Kt1UIPi7kZqkSc5HVj6UY5YLHHEzPBkgpNUByuyxtlw=", + "lastModified": 1750133334, + "narHash": "sha256-urV51uWH7fVnhIvsZIELIYalMYsyr2FCalvlRTzqWRw=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "dfcd5b901dbab46c9c6e80b265648481aafb01f8", + "rev": "36ab78dab7da2e4e27911007033713bab534187b", "type": "github" }, "original": { diff --git a/hosts/hub/apps/nextcloud.nix b/hosts/hub/apps/nextcloud.nix index e0511be..97371d5 100644 --- a/hosts/hub/apps/nextcloud.nix +++ b/hosts/hub/apps/nextcloud.nix @@ -28,7 +28,7 @@ nextcloud = { enable = true; hostName = "nextcloud.thewordnerd.info"; - package = pkgs.nextcloud31; + package = pkgs.nextcloud30; configureRedis = true; maxUploadSize = "16G"; # autoUpdateApps.enable = true; @@ -54,43 +54,27 @@ }; resolved.enable = true; }; - # IMPORTANT: Nextcloud container startup workaround - # The nextcloud-setup service blocks container startup when it needs to perform upgrades, - # creating a circular dependency: the network can't be configured until the container is ready, - # but the container can't be ready without network access for the upgrade. - # - # To upgrade Nextcloud when changing major versions: - # 1. Uncomment the lines below to disable nextcloud-setup - # 2. Run: nixos-rebuild switch - # 3. Run: nixos-container run nextcloud -- nextcloud-occ upgrade - # 4. Run: nixos-container run nextcloud -- nextcloud-occ maintenance:mode --off - # 5. Comment out the lines below again - # 6. Run: nixos-rebuild switch - # - # systemd.services.nextcloud-setup = { - # enable = false; - # }; programs.nix-ld.enable = true; networking = { firewall.allowedTCPPorts = [ 80 ]; useHostResolvConf = lib.mkForce false; }; - # virtualisation.docker.enable = true; - # users.users.nextcloud.extraGroups = [ "docker" ]; + virtualisation.docker.enable = true; + users.users.nextcloud.extraGroups = [ "docker" ]; environment.systemPackages = with pkgs; [ poppler_utils - # (pkgs.writeScriptBin "occ" '' - # #!${pkgs.bash}/bin/bash - # exec nextcloud-occ "$@" - # '') + (pkgs.writeScriptBin "occ" '' + #!${pkgs.bash}/bin/bash + exec nextcloud-occ "$@" + '') ]; programs.java.binfmt = true; system.stateVersion = "24.11"; }; # https://discourse.nixos.org/t/podman-docker-in-nixos-container-ideally-in-unprivileged-one/22909/12 - # additionalCapabilities = [ - # ''all" --system-call-filter="add_key keyctl bpf" --capability="all'' - # ]; + additionalCapabilities = [ + ''all" --system-call-filter="add_key keyctl bpf" --capability="all'' + ]; bindMounts = { "/run/postgresql" = { hostPath = "/run/postgresql"; diff --git a/hosts/hub/default.nix b/hosts/hub/default.nix index e32c8c7..5bc5534 100644 --- a/hosts/hub/default.nix +++ b/hosts/hub/default.nix @@ -37,12 +37,17 @@ ./apps/open-webui.nix ]; - boot = { - loader = { - efi.canTouchEfiVariables = true; - systemd-boot.enable = true; - }; - supportedFilesystems = [ "zfs" ]; + boot.loader.grub = { + enable = true; + zfsSupport = true; + efiSupport = true; + efiInstallAsRemovable = true; + mirroredBoots = [ + { + devices = [ "nodev" ]; + path = "/boot"; + } + ]; }; networking = {