Skip to content

Commit 9ae0638

Browse files
Merge pull request #258 from NuschtOS/25.05
Update to NixOS 25.05
2 parents 7ae1a73 + 3f21ebc commit 9ae0638

File tree

5 files changed

+14
-36
lines changed

5 files changed

+14
-36
lines changed

.github/workflows/flake-check.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ jobs:
1919
matrix:
2020
targets:
2121
- repo: NixOS/nixpkgs
22-
branch: nixos-24.11
22+
branch: nixos-25.05
2323
- repo: NixOS/nixpkgs
2424
branch: nixos-unstable
2525

2626
- repo: NuschtOS/nuschtpkgs
27-
branch: nixos-24.11
27+
branch: nixos-25.05
2828
- repo: NuschtOS/nuschtpkgs
29-
branch: backports-24.11
29+
branch: backports-25.05
3030
- repo: NuschtOS/nuschtpkgs
3131
branch: nixos-unstable
3232

modules/nextcloud.nix

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
let
44
cfg = config.services.nextcloud;
55
inherit (pkgs."nextcloud${lib.versions.major cfg.package.version}Packages") apps;
6-
# TODO: drop when dropping 24.11 support
7-
hasMemoriesApp = apps?memories;
86
in
97
{
108
options = {
@@ -104,10 +102,10 @@ in
104102
];
105103

106104
"memories.exiftool_no_local" = false;
107-
"memories.exiftool" = if hasMemoriesApp then "${apps.memories}/bin-ext/exiftool/exiftool" else lib.getExe pkgs.exiftool;
108-
"memories.vod.ffmpeg" = if hasMemoriesApp then "${apps.memories}/bin-ext/ffmpeg" else lib.getExe pkgs.ffmpeg-headless;
109-
"memories.vod.ffprobe" = if hasMemoriesApp then "${apps.memories}/bin-ext/ffprobe" else lib.getExe' pkgs.ffmpeg-headless "ffprobe";
110-
"memories.vod.path" = lib.mkIf hasMemoriesApp "${apps.memories}/bin-ext/go-vod";
105+
"memories.exiftool" = "${apps.memories}/bin-ext/exiftool/exiftool";
106+
"memories.vod.ffmpeg" = "${apps.memories}/bin-ext/ffmpeg";
107+
"memories.vod.ffprobe" = "${apps.memories}/bin-ext/ffprobe";
108+
"memories.vod.path" = "${apps.memories}/bin-ext/go-vod";
111109
"memories.vod.vaapi" = lib.mkIf cfg.configureMemoriesVaapi true;
112110
})
113111

@@ -141,15 +139,6 @@ in
141139
services = let
142140
occ = "/run/current-system/sw/bin/nextcloud-occ";
143141
in {
144-
nextcloud-cron = lib.mkIf (cfg.configureMemories && !hasMemoriesApp) {
145-
# required for memories
146-
# see https://github.com/pulsejet/memories/blob/master/docs/troubleshooting.md#issues-with-nixos
147-
path = with pkgs; [ perl ];
148-
# fix memories app being unpacked without the x-bit on binaries
149-
# could be done in nextcloud-update-plugins but then manually updates would be broken until the next auto update
150-
preStart = "${lib.getExe' pkgs.coreutils "chmod"} +x ${cfg.home}/store-apps/memories/bin-ext/*";
151-
};
152-
153142
nextcloud-cron-preview-generator = lib.mkIf cfg.configurePreviewSettings {
154143
environment.NEXTCLOUD_CONFIG_DIR = "${cfg.datadir}/config";
155144
serviceConfig = {
@@ -213,11 +202,8 @@ in
213202
extraGroups = lib.mkIf (cfg.configureMemories && cfg.configureMemoriesVaapi) [
214203
"render" # access /dev/dri/renderD128
215204
];
216-
packages = with pkgs;
217-
# generate video thumbnails with preview generator
218-
lib.optional cfg.configurePreviewSettings ffmpeg-headless
219-
# required for memories, duplicated with nextcloud-cron to better debug
220-
++ lib.optional (cfg.configureMemories && !hasMemoriesApp) perl;
205+
# generate video thumbnails with preview generator
206+
packages = lib.optional cfg.configurePreviewSettings pkgs.ffmpeg-headless;
221207
};
222208
};
223209
}

modules/nvidia.nix

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
{ config, lib, options, ... }:
1+
{ config, lib, ... }:
22

33
let
44
cfg = config.hardware;
5-
# TODO: remove with 24.11
6-
hardwareOpengl = if options.hardware?graphics then "graphics" else "opengl";
75
in
86
{
97
options.hardware = {
@@ -17,7 +15,7 @@ in
1715
};
1816

1917
hardware = {
20-
"${hardwareOpengl}".enable = true;
18+
graphics.enable = true;
2119
nvidia = {
2220
modesetting.enable = true;
2321
nvidiaSettings = true;

modules/postgres.nix

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,6 @@ in
221221
# TODO: upstream, this probably requires a new entry in passthru to pick if the object name doesn't match the plugin name or there are multiple
222222
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/services/databases/postgresql.nix#L81
223223
++ (let
224-
# drop workaround when dropping support for 24.11
225-
# https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/databases/postgresql.nix#L52-L54
226-
basePackage = if cfg.enableJIT then cfg.package.withJIT else cfg.package.withoutJIT;
227-
postgresPkg = if cfg.extensions == [ ] then basePackage else basePackage.withPackages cfg.extensions;
228-
finalPackage = cfg.finalPackage or postgresPkg;
229-
230224
# NOTE: move into extensions passthru.libName when upstreaming and find via cfg.finalPackage.installedExtensions
231225
getSoOrFallback = so: let
232226
name = lib.getName so;
@@ -235,7 +229,7 @@ in
235229
# withJIT installs the postgres' jit output as an extension but that is no shared object to load
236230
postgresql = null;
237231
}.${name} or name;
238-
in lib.optionals cfg.preloadAllExtensions (lib.filter (x: x != null) (map getSoOrFallback finalPackage.installedExtensions)));
232+
in lib.optionals cfg.preloadAllExtensions (lib.filter (x: x != null) (map getSoOrFallback cfg.finalPackage.installedExtensions)));
239233
upgrade.stopServices = with config.services; lib.mkMerge [
240234
(lib.mkIf (atuin.enable && atuin.database.createLocally) [ "atuin" ])
241235
(lib.mkIf (gancio.enable && gancio.settings.db.dialect == "postgres") [ "gancio" ])

tests/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ in toplevel // {
2626
security.acme.staging = true;
2727
};
2828
};
29-
} // lib.optionalAttrs (lib.versionAtLeast lib.version "24.11") {
29+
3030
# https://github.com/NuschtOS/nixos-modules/issues/39
3131
hound-repos = mkTest {
3232
module = {
@@ -36,7 +36,7 @@ in toplevel // {
3636
};
3737
};
3838
};
39-
} // {
39+
4040
grafana-no-nginx = mkTest {
4141
module = {
4242
services.grafana = {

0 commit comments

Comments
 (0)