diff --git a/sp-modules/nextcloud/flake.nix b/sp-modules/nextcloud/flake.nix index 2cf384e..f7c330c 100644 --- a/sp-modules/nextcloud/flake.nix +++ b/sp-modules/nextcloud/flake.nix @@ -1,7 +1,9 @@ { description = "PoC SP module for nextcloud"; - outputs = { self }: { + inputs.nixpkgs-old.url = "nixpkgs/nixos-23.11"; + + outputs = { self, nixpkgs-old }: { nixosModules.default = _: { imports = [ ./module.nix ./cleanup-module.nix ]; }; configPathsNeeded = diff --git a/sp-modules/nextcloud/module.nix b/sp-modules/nextcloud/module.nix index 032244a..b9b1239 100644 --- a/sp-modules/nextcloud/module.nix +++ b/sp-modules/nextcloud/module.nix @@ -1,4 +1,9 @@ -{ config, lib, pkgs, ... }: +{ config, lib, pkgs, nixpkgs-old, ... }: +let + oldPkgs = import nixpkgs-old { + system = "x86_64-linux"; # Same architecture as above + }; +in { options.selfprivacy.modules.nextcloud = with lib; { enable = mkOption { @@ -66,7 +71,7 @@ }; services.nextcloud = { enable = true; - package = pkgs.nextcloud29; + package = oldPkgs.nextcloud26; inherit hostName; # Use HTTPS for links