From 059a4ebf0eddef9d38be5a742f9c0544f4b046f5 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Sun, 16 Jun 2024 18:12:57 +0200 Subject: [PATCH 1/2] nixos: upgrade to 24.05 and fix errors --- flake.lock | 8 ++++---- flake.nix | 2 +- modules/core/bacula.nix | 5 ++++- modules/core/base.nix | 1 - modules/web/ese.nix | 8 ++++---- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/flake.lock b/flake.lock index 37b4e24..9c34947 100644 --- a/flake.lock +++ b/flake.lock @@ -160,16 +160,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1716361217, - "narHash": "sha256-mzZDr00WUiUXVm1ujBVv6A0qRd8okaITyUp4ezYRgc4=", + "lastModified": 1718208800, + "narHash": "sha256-US1tAChvPxT52RV8GksWZS415tTS7PV42KTc2PNDBmc=", "owner": "nixos", "repo": "nixpkgs", - "rev": "46397778ef1f73414b03ed553a3368f0e7e33c2f", + "rev": "cc54fb41d13736e92229c21627ea4f22199fee6b", "type": "github" }, "original": { "owner": "nixos", - "ref": "nixos-23.11", + "ref": "nixos-24.05", "repo": "nixpkgs", "type": "github" } diff --git a/flake.nix b/flake.nix index 422d82c..08eba14 100755 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ { inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11"; + nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; sops-nix.url = "github:Mic92/sops-nix"; sops-nix.inputs.nixpkgs.follows = "nixpkgs"; diff --git a/modules/core/bacula.nix b/modules/core/bacula.nix index ea93477..15e309c 100644 --- a/modules/core/bacula.nix +++ b/modules/core/bacula.nix @@ -26,7 +26,10 @@ mailcommand = "${pkgs.bacula}/bin/bsmtp -f \"Bacula \" -s \"Bacula report" %r" mail = root+backup = all, !skipped ''; - director."abel-dir".password = "@${config.sops.secrets."bacula/password".path}"; + director."abel-dir" = { + password = "@${config.sops.secrets."bacula/password".path}"; + tls.enable = false; + }; }; environment.etc."bacula/bconsole.conf".text = '' Director { diff --git a/modules/core/base.nix b/modules/core/base.nix index 5f4e7b7..507c8f6 100755 --- a/modules/core/base.nix +++ b/modules/core/base.nix @@ -1,6 +1,5 @@ { pkgs, config, ... }: { nix = { - package = pkgs.nixUnstable; # or versioned attributes like nix_2_4 extraOptions = '' experimental-features = nix-command flakes ''; diff --git a/modules/web/ese.nix b/modules/web/ese.nix index 780ad13..31efe1b 100644 --- a/modules/web/ese.nix +++ b/modules/web/ese.nix @@ -5,7 +5,7 @@ let in { sops.secrets."directus_env" = { }; - environment.systemPackages = [ pkgs.nodejs_21 ]; + environment.systemPackages = [ pkgs.nodejs_22 ]; virtualisation.oci-containers = { containers.directus-ese = { image = "directus/directus:latest"; @@ -21,13 +21,13 @@ in "DB_DATABASE" = "directus_ese"; "DB_USER" = "directus_ese"; "PUBLIC_URL" = "https://directus-ese.ifsr.de"; - "AUTH_PROVIDERS"="keycloak"; + "AUTH_PROVIDERS" = "keycloak"; "AUTH_KEYCLOAK_DRIVER" = "openid"; "AUTH_KEYCLOAK_CLIENT_ID" = "directus-ese"; "AUTH_KEYCLOAK_ISSUER_URL" = "https://sso.ifsr.de/realms/internal/.well-known/openid-configuration"; "AUTH_KEYCLOAK_IDENTIFIER_KEY" = "email"; - "AUTH_KEYCLOAK_ALLOW_PUBLIC_REGISTRATION"="true"; - "AUTH_KEYCLOAK_DEFAULT_ROLE_ID"="a6b7a1b6-a6fa-442c-87fd-e37c2a16424b"; + "AUTH_KEYCLOAK_ALLOW_PUBLIC_REGISTRATION" = "true"; + "AUTH_KEYCLOAK_DEFAULT_ROLE_ID" = "a6b7a1b6-a6fa-442c-87fd-e37c2a16424b"; }; environmentFiles = [ config.sops.secrets."directus_env".path From 97de6f64895d47edc4a7f51d01070ee7a45320e1 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Fri, 21 Jun 2024 13:31:41 +0200 Subject: [PATCH 2/2] fix warnings --- hosts/tomate/configuration.nix | 8 ++++---- modules/mail/dovecot2.nix | 2 +- modules/nextcloud.nix | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hosts/tomate/configuration.nix b/hosts/tomate/configuration.nix index 7ac0b3a..8058b04 100644 --- a/hosts/tomate/configuration.nix +++ b/hosts/tomate/configuration.nix @@ -50,13 +50,13 @@ services.xserver.enable = true; # Enable the KDE Plasma Desktop Environment. - services.xserver.displayManager.sddm.enable = true; + services.displayManager.sddm.enable = true; services.xserver.desktopManager.plasma5.enable = true; # Configure keymap in X11 services.xserver = { - layout = "de"; - xkbVariant = ""; + xkb.layout = "de"; + xkb.variant = ""; }; # Configure console keymap @@ -90,7 +90,7 @@ services.avahi = { enable = true; - nssmdns = true; + nssmdns4 = true; openFirewall = true; publish = { enable = true; diff --git a/modules/mail/dovecot2.nix b/modules/mail/dovecot2.nix index ffc6614..df29df0 100644 --- a/modules/mail/dovecot2.nix +++ b/modules/mail/dovecot2.nix @@ -101,7 +101,7 @@ in # set to satisfy the sieveScripts check, will be overridden by userdb lookups anyways mailUser = "vmail"; mailGroup = "vmail"; - sieveScripts = { + sieve.scripts = { before = pkgs.writeText "spam.sieve" '' require "fileinto"; diff --git a/modules/nextcloud.nix b/modules/nextcloud.nix index 6ab4a25..6e515d1 100644 --- a/modules/nextcloud.nix +++ b/modules/nextcloud.nix @@ -30,7 +30,7 @@ in database.createLocally = true; # enable HEIC image preview - extraOptions.enabledPreviewProviders = [ + settings.enabledPreviewProviders = [ "OC\\Preview\\BMP" "OC\\Preview\\GIF" "OC\\Preview\\JPEG"