Merge master into staging-next

authored by github-actions[bot] and committed by GitHub f1703ab3 6ede9cd7

+23 -19
-3
nixos/modules/services/x11/display-managers/startx.nix
··· 35 35 config = mkIf cfg.enable { 36 36 services.xserver = { 37 37 exportConfiguration = true; 38 - displayManager.job.execCmd = ""; 39 - displayManager.lightdm.enable = lib.mkForce false; 40 38 }; 41 - systemd.services.display-manager.enable = false; 42 39 43 40 # Other displayManagers log to /dev/null because they're services and put 44 41 # Xorg's stdout in the journal
-5
nixos/modules/services/x11/display-managers/sx.nix
··· 26 26 environment.systemPackages = [ pkgs.sx ]; 27 27 services.xserver = { 28 28 exportConfiguration = true; 29 - displayManager = { 30 - job.execCmd = ""; 31 - lightdm.enable = mkForce false; 32 - }; 33 29 logFile = mkDefault null; 34 30 }; 35 - systemd.services.display-manager.enable = false; 36 31 }; 37 32 38 33 meta.maintainers = with maintainers; [ figsoda ];
+18 -6
nixos/modules/services/x11/xserver.nix
··· 588 588 config = mkIf cfg.enable { 589 589 590 590 services.xserver.displayManager.lightdm.enable = 591 - let dmconf = cfg.displayManager; 592 - default = !(dmconf.gdm.enable 593 - || dmconf.sddm.enable 594 - || dmconf.xpra.enable ); 595 - in mkIf (default) true; 591 + let dmConf = cfg.displayManager; 592 + default = !(dmConf.gdm.enable 593 + || dmConf.sddm.enable 594 + || dmConf.xpra.enable 595 + || dmConf.sx.enable 596 + || dmConf.startx.enable); 597 + in mkIf (default) (mkDefault true); 598 + 599 + # so that the service won't be enabled when only startx is used 600 + systemd.services.display-manager.enable = 601 + let dmConf = cfg.displayManager; 602 + noDmUsed = !(dmConf.gdm.enable 603 + || dmConf.sddm.enable 604 + || dmConf.xpra.enable 605 + || dmConf.lightdm.enable); 606 + in mkIf (noDmUsed) (mkDefault false); 596 607 597 608 hardware.opengl.enable = mkDefault true; 598 609 ··· 702 713 rm -f /tmp/.X0-lock 703 714 ''; 704 715 705 - script = "${cfg.displayManager.job.execCmd}"; 716 + # TODO: move declaring the systemd service to its own mkIf 717 + script = mkIf (config.systemd.services.display-manager.enable == true) "${cfg.displayManager.job.execCmd}"; 706 718 707 719 # Stop restarting if the display manager stops (crashes) 2 times 708 720 # in one minute. Starting X typically takes 3-4s.
+3 -3
pkgs/servers/matrix-corporal/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "matrix-corporal"; 5 - version = "2.1.0"; 5 + version = "2.2.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "devture"; 9 9 repo = pname; 10 10 rev = version; 11 - sha256 = "sha256-u1ppwy+t2ewAH0/+R6e0Ja5A3PQG/lUy2b6kgcMVj8E="; 11 + sha256 = "sha256-KSKPTbF1hhzLyD+iL4+hW9EuV+xFYzSzHu1DSGXWm90="; 12 12 }; 13 13 14 14 ldflags = [ 15 15 "-s" "-w" "-X main.GitCommit=${version}" "-X main.GitBranch=${version}" "-X main.GitState=nixpkgs" "-X main.GitSummary=${version}" "-X main.Version=${version}" 16 16 ]; 17 17 18 - vendorSha256 = "sha256-YmUiGsg2UZfV6SHEPwnbmWPhGQ5teV+we9MBaJyrJr4="; 18 + vendorSha256 = "sha256-sC9JA6VRmHGuO3anaZW2Ih5QnRrUom9IIOE7yi3TTG8="; 19 19 20 20 meta = with lib; { 21 21 homepage = "https://github.com/devture/matrix-corporal";
+2 -2
pkgs/servers/sql/mariadb/default.nix
··· 1 1 { lib, stdenv, fetchurl, fetchFromGitHub, cmake, pkg-config, makeWrapper, ncurses, nixosTests 2 2 , libiconv, openssl, pcre2, boost, judy, bison, libxml2, libkrb5, linux-pam, curl 3 - , libaio, libevent, jemalloc, cracklib, systemd, perl 3 + , liburing, libevent, jemalloc, cracklib, systemd, perl 4 4 , bzip2, lz4, lzo, snappy, xz, zlib, zstd 5 5 , fixDarwinDylibNames, cctools, CoreServices, less 6 6 , numactl # NUMA Support ··· 34 34 35 35 buildInputs = [ 36 36 ncurses openssl zlib pcre2 libiconv curl 37 - ] ++ optionals stdenv.hostPlatform.isLinux [ libaio systemd libkrb5 ] 37 + ] ++ optionals stdenv.hostPlatform.isLinux [ liburing systemd libkrb5 ] 38 38 ++ optionals stdenv.hostPlatform.isDarwin [ perl cctools CoreServices ] 39 39 ++ optional (!stdenv.hostPlatform.isDarwin) [ jemalloc ]; 40 40