summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2024-01-10 23:12:44 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2024-01-10 23:12:44 +0100
commit2f9e98ccf3283a34ce9301c7ee4ca18d219d829d (patch)
tree20c0008db3c5a2a139a0dc04b8f4e73e5ef88be7
parent1bd03328df9abc45c9fa03be05a8f351b18c6c3b (diff)
parent0373b68de5bc06489c9ea4694f72e5013b08e45e (diff)
Merge branch 'master' into staging-next
-rw-r--r--maintainers/maintainer-list.nix12
-rw-r--r--nixos/doc/manual/release-notes/rl-2405.section.md2
-rw-r--r--nixos/modules/config/krb5/default.nix369
-rw-r--r--nixos/modules/installer/tools/nix-fallback-paths.nix10
-rw-r--r--nixos/modules/module-list.nix2
-rw-r--r--nixos/modules/security/ipa.nix4
-rw-r--r--nixos/modules/security/krb5/default.nix90
-rw-r--r--nixos/modules/security/krb5/krb5-conf-format.nix88
-rw-r--r--nixos/modules/security/pam.nix6
-rw-r--r--nixos/modules/services/system/kerberos/default.nix2
-rw-r--r--nixos/modules/services/system/kerberos/heimdal.nix2
-rw-r--r--nixos/modules/services/system/kerberos/mit.nix2
-rw-r--r--nixos/modules/services/x11/desktop-managers/gnome.nix1
-rw-r--r--nixos/tests/kerberos/heimdal.nix23
-rw-r--r--nixos/tests/kerberos/mit.nix23
-rw-r--r--nixos/tests/krb5/default.nix1
-rw-r--r--nixos/tests/krb5/deprecated-config.nix50
-rw-r--r--nixos/tests/krb5/example-config.nix140
-rw-r--r--nixos/tests/nfs/kerberos.nix22
-rw-r--r--nixos/tests/pam/pam-file-contents.nix2
-rw-r--r--pkgs/applications/graphics/imgp/default.nix16
-rw-r--r--pkgs/applications/networking/browsers/firefox-bin/release_sources.nix818
-rw-r--r--pkgs/applications/networking/browsers/firefox/packages.nix4
-rw-r--r--pkgs/applications/networking/cluster/linkerd/edge.nix6
-rw-r--r--pkgs/applications/networking/cluster/opentofu/default.nix4
-rw-r--r--pkgs/applications/networking/instant-messengers/skypeforlinux/default.nix1
-rw-r--r--pkgs/applications/networking/jmeter/default.nix4
-rw-r--r--pkgs/applications/video/obs-studio/default.nix1
-rw-r--r--pkgs/build-support/oci-tools/default.nix2
-rw-r--r--pkgs/by-name/pa/par2cmdline-turbo/package.nix25
-rw-r--r--pkgs/by-name/sh/shadershark/package.nix63
-rwxr-xr-xpkgs/by-name/sh/shadershark/update.sh14
-rw-r--r--pkgs/by-name/wi/win2xcur/package.nix23
-rw-r--r--pkgs/by-name/wl/wlvncc/package.nix68
-rw-r--r--pkgs/development/compilers/llvm/6/clang/default.nix127
-rw-r--r--pkgs/development/compilers/llvm/6/clang/gnu-install-dirs.patch258
-rw-r--r--pkgs/development/compilers/llvm/6/compiler-rt/armv7l.patch32
-rw-r--r--pkgs/development/compilers/llvm/6/compiler-rt/codesign.patch155
-rw-r--r--pkgs/development/compilers/llvm/6/compiler-rt/default.nix112
-rw-r--r--pkgs/development/compilers/llvm/6/compiler-rt/gnu-install-dirs.patch107
-rw-r--r--pkgs/development/compilers/llvm/6/default.nix126
-rw-r--r--pkgs/development/compilers/llvm/6/libcxx/default.nix85
-rw-r--r--pkgs/development/compilers/llvm/6/libcxx/gnu-install-dirs.patch72
-rw-r--r--pkgs/development/compilers/llvm/6/libcxxabi/default.nix70
-rw-r--r--pkgs/development/compilers/llvm/6/libcxxabi/gnu-install-dirs.patch28
-rw-r--r--pkgs/development/compilers/llvm/6/lld/default.nix46
-rw-r--r--pkgs/development/compilers/llvm/6/lld/gnu-install-dirs.patch68
-rw-r--r--pkgs/development/compilers/llvm/6/lldb/default.nix88
-rw-r--r--pkgs/development/compilers/llvm/6/lldb/gnu-install-dirs.patch76
-rw-r--r--pkgs/development/compilers/llvm/6/llvm/default.nix301
-rw-r--r--pkgs/development/compilers/llvm/6/llvm/gnu-install-dirs-polly.patch106
-rw-r--r--pkgs/development/compilers/llvm/6/llvm/gnu-install-dirs.patch386
-rw-r--r--pkgs/development/compilers/llvm/6/openmp/default.nix37
-rw-r--r--pkgs/development/compilers/llvm/common/bintools.nix1
-rw-r--r--pkgs/development/cuda-modules/generic-builders/manifest.nix27
-rw-r--r--pkgs/development/libraries/SDL_gfx/default.nix4
-rw-r--r--pkgs/development/libraries/libgcrypt/1.8.nix2
-rw-r--r--pkgs/development/ocaml-modules/mirage-crypto/rng.nix5
-rw-r--r--pkgs/development/python-modules/geopandas/default.nix4
-rw-r--r--pkgs/development/tools/misc/cmake-language-server/default.nix1
-rw-r--r--pkgs/development/tools/rust/cargo-tauri/default.nix4
-rw-r--r--pkgs/development/tools/rust/sqlx-cli/default.nix23
-rw-r--r--pkgs/development/tools/symfony-cli/default.nix6
-rw-r--r--pkgs/development/web/bun/default.nix10
-rw-r--r--pkgs/games/osu-lazer/bin.nix8
-rw-r--r--pkgs/games/osu-lazer/default.nix4
-rw-r--r--pkgs/misc/jitsi-meet-prosody/default.nix4
-rw-r--r--pkgs/servers/jicofo/default.nix4
-rw-r--r--pkgs/servers/jitsi-videobridge/default.nix4
-rw-r--r--pkgs/servers/web-apps/jitsi-meet/default.nix4
-rw-r--r--pkgs/stdenv/adapters.nix5
-rw-r--r--pkgs/test/default.nix1
-rw-r--r--pkgs/tools/misc/jugglinglab/default.nix78
-rw-r--r--pkgs/tools/misc/jugglinglab/fix-default-maven-plugin-versions.patch70
-rw-r--r--pkgs/tools/package-management/nix/default.nix2
-rw-r--r--pkgs/tools/security/keybase/default.nix2
-rw-r--r--pkgs/tools/system/smartmontools/default.nix6
-rw-r--r--pkgs/tools/text/sift/default.nix2
-rw-r--r--pkgs/tools/virtualization/kubevirt/default.nix4
-rw-r--r--pkgs/top-level/aliases.nix8
-rw-r--r--pkgs/top-level/all-packages.nix16
-rw-r--r--pkgs/top-level/ocaml-packages.nix2
-rw-r--r--pkgs/top-level/release.nix6
83 files changed, 1162 insertions, 3335 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix
index 00a362698ed5..078936c59290 100644
--- a/maintainers/maintainer-list.nix
+++ b/maintainers/maintainer-list.nix
@@ -14994,6 +14994,12 @@
githubId = 18549627;
name = "Proglodyte";
};
+ proglottis = {
+ email = "proglottis@gmail.com";
+ github = "proglottis";
+ githubId = 74465;
+ name = "James Fargher";
+ };
progval = {
email = "progval+nix@progval.net";
github = "progval";
@@ -18184,6 +18190,12 @@
githubId = 2389333;
name = "Andy Tockman";
};
+ teatwig = {
+ email = "nix@teatwig.net";
+ name = "tea";
+ github = "teatwig";
+ githubId = 18734648;
+ };
techknowlogick = {
email = "techknowlogick@gitea.com";
github = "techknowlogick";
diff --git a/nixos/doc/manual/release-notes/rl-2405.section.md b/nixos/doc/manual/release-notes/rl-2405.section.md
index 15700d02fc69..5c05ad780d90 100644
--- a/nixos/doc/manual/release-notes/rl-2405.section.md
+++ b/nixos/doc/manual/release-notes/rl-2405.section.md
@@ -160,6 +160,8 @@ The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been m
- `services.zfs.zed.enableMail` now uses the global `sendmail` wrapper defined by an email module
(such as msmtp or Postfix). It no longer requires using a special ZFS build with email support.
+- The `krb5` module has been rewritten and moved to `security.krb5`, moving all options but `security.krb5.enable` and `security.krb5.package` into `security.krb5.settings`.
+
- Gitea 1.21 upgrade has several breaking changes, including:
- Custom themes and other assets that were previously stored in `custom/public/*` now belong in `custom/public/assets/*`
- New instances of Gitea using MySQL now ignore the `[database].CHARSET` config option and always use the `utf8mb4` charset, existing instances should migrate via the `gitea doctor convert` CLI command.
diff --git a/nixos/modules/config/krb5/default.nix b/nixos/modules/config/krb5/default.nix
deleted file mode 100644
index df7a3f48236f..000000000000
--- a/nixos/modules/config/krb5/default.nix
+++ /dev/null
@@ -1,369 +0,0 @@
-{ config, lib, pkgs, ... }:
-
-with lib;
-
-let
-
- cfg = config.krb5;
-
- # This is to provide support for old configuration options (as much as is
- # reasonable). This can be removed after 18.03 was released.
- defaultConfig = {
- libdefaults = optionalAttrs (cfg.defaultRealm != null)
- { default_realm = cfg.defaultRealm; };
-
- realms = optionalAttrs (lib.all (value: value != null) [
- cfg.defaultRealm cfg.kdc cfg.kerberosAdminServer
- ]) {
- ${cfg.defaultRealm} = {
- kdc = cfg.kdc;
- admin_server = cfg.kerberosAdminServer;
- };
- };
-
- domain_realm = optionalAttrs (lib.all (value: value != null) [
- cfg.domainRealm cfg.defaultRealm
- ]) {
- ".${cfg.domainRealm}" = cfg.defaultRealm;
- ${cfg.domainRealm} = cfg.defaultRealm;
- };
- };
-
- mergedConfig = (recursiveUpdate defaultConfig {
- inherit (config.krb5)
- kerberos libdefaults realms domain_realm capaths appdefaults plugins
- extraConfig config;
- });
-
- filterEmbeddedMetadata = value: if isAttrs value then
- (filterAttrs
- (attrName: attrValue: attrName != "_module" && attrValue != null)
- value)
- else value;
-
- indent = " ";
-
- mkRelation = name: value:
- if (isList value) then
- concatMapStringsSep "\n" (mkRelation name) value
- else "${name} = ${mkVal value}";
-
- mkVal = value:
- if (value == true) then "true"
- else if (value == false) then "false"
- else if (isInt value) then (toString value)
- else if (isAttrs value) then
- let configLines = concatLists
- (map (splitString "\n")
- (mapAttrsToList mkRelation value));
- in
- (concatStringsSep "\n${indent}"
- ([ "{" ] ++ configLines))
- + "\n}"
- else value;
-
- mkMappedAttrsOrString = value: concatMapStringsSep "\n"
- (line: if builtins.stringLength line > 0
- then "${indent}${line}"
- else line)
- (splitString "\n"
- (if isAttrs value then
- concatStringsSep "\n"
- (mapAttrsToList mkRelation value)
- else value));
-
-in {
-
- ###### interface
-
- options = {
- krb5 = {
- enable = mkEnableOption (lib.mdDoc "building krb5.conf, configuration file for Kerberos V");
-
- kerberos = mkOption {
- type = types.package;
- default = pkgs.krb5;
- defaultText = literalExpression "pkgs.krb5";
- example = literalExpression "pkgs.heimdal";
- description = lib.mdDoc ''
- The Kerberos implementation that will be present in
- `environment.systemPackages` after enabling this
- service.
- '';
- };
-
- libdefaults = mkOption {
- type = with types; either attrs lines;
- default = {};
- apply = attrs: filterEmbeddedMetadata attrs;
- example = literalExpression ''
- {
- default_realm = "ATHENA.MIT.EDU";
- };
- '';
- description = lib.mdDoc ''
- Settings used by the Kerberos V5 library.
- '';
- };
-
- realms = mkOption {
- type = with types; either attrs lines;
- default = {};
- example = literalExpression ''
- {
- "ATHENA.MIT.EDU" = {
- admin_server = "athena.mit.edu";
- kdc = [
- "athena01.mit.edu"
- "athena02.mit.edu"
- ];
- };
- };
- '';
- apply = attrs: filterEmbeddedMetadata attrs;
- description = lib.mdDoc "Realm-specific contact information and settings.";
- };
-
- domain_realm = mkOption {
- type = with types; either attrs lines;
- default = {};
- example = literalExpression ''
- {
- "example.com" = "EXAMPLE.COM";
- ".example.com" = "EXAMPLE.COM";
- };
- '';
- apply = attrs: filterEmbeddedMetadata attrs;
- description = lib.mdDoc ''
- Map of server hostnames to Kerberos realms.
- '';
- };
-
- capaths = mkOption {
- type = with types; either attrs lines;
- default = {};
- example = literalExpression ''
- {
- "ATHENA.MIT.EDU" = {
- "EXAMPLE.COM" = ".";
- };
- "EXAMPLE.COM" = {
- "ATHENA.MIT.EDU" = ".";
- };
- };
- '';
- apply = attrs: filterEmbeddedMetadata attrs;
- description = lib.mdDoc ''
- Authentication paths for non-hierarchical cross-realm authentication.
- '';
- };
-
- appdefaults = mkOption {
- type = with types; either attrs lines;
- default = {};
- example = literalExpression ''
- {
- pam = {
- debug = false;
- ticket_lifetime = 36000;
- renew_lifetime = 36000;
- max_timeout = 30;
- timeout_shift = 2;
- initial_timeout = 1;
- };
- };
- '';
- apply = attrs: filterEmbeddedMetadata attrs;
- description = lib.mdDoc ''
- Settings used by some Kerberos V5 applications.
- '';
- };
-
- plugins = mkOption {
- type = with types; either attrs lines;
- default = {};
- example = literalExpression ''
- {
- ccselect = {
- disable = "k5identity";
- };
- };
- '';
- apply = attrs: filterEmbeddedMetadata attrs;
- description = lib.mdDoc ''
- Controls plugin module registration.
- '';
- };
-
- extraConfig = mkOption {
- type = with types; nullOr lines;
- default = null;
- example = ''
- [logging]
- kdc = SYSLOG:NOTICE
- admin_server = SYSLOG:NOTICE
- default = SYSLOG:NOTICE
- '';
- description = lib.mdDoc ''
- These lines go to the end of `krb5.conf` verbatim.
- `krb5.conf` may include any of the relations that are
- valid for `kdc.conf` (see `man kdc.conf`),
- but it is not a recommended practice.
- '';
- };
-
- config = mkOption {
- type = with types; nullOr lines;
- default = null;
- example = ''
- [libdefaults]
- default_realm = EXAMPLE.COM
-
- [realms]
- EXAMPLE.COM = {
- admin_server = kerberos.example.com
- kdc = kerberos.example.com
- default_principal_flags = +preauth
- }
-
- [domain_realm]
- example.com = EXAMPLE.COM
- .example.com = EXAMPLE.COM
-
- [logging]
- kdc = SYSLOG:NOTICE
- admin_server = SYSLOG:NOTICE
- default = SYSLOG:NOTICE
- '';
- description = lib.mdDoc ''
- Verbatim `krb5.conf` configuration. Note that this
- is mutually exclusive with configuration via
- `libdefaults`, `realms`,
- `domain_realm`, `capaths`,
- `appdefaults`, `plugins` and
- `extraConfig` configuration options. Consult
- `man krb5.conf` for documentation.
- '';
- };
-
- defaultRealm = mkOption {
- type = with types; nullOr str;
- default = null;
- example = "ATHENA.MIT.EDU";
- description = lib.mdDoc ''
- DEPRECATED, please use
- `krb5.libdefaults.default_realm`.
- '';
- };
-
- domainRealm = mkOption {
- type = with types; nullOr str;
- default = null;
- example = "athena.mit.edu";
- description = lib.mdDoc ''
- DEPRECATED, please create a map of server hostnames to Kerberos realms
- in `krb5.domain_realm`.
- '';
- };
-
- kdc = mkOption {
- type = with types; nullOr str;
- default = null;
- example = "kerberos.mit.edu";
- description = lib.mdDoc ''
- DEPRECATED, please pass a `kdc` attribute to a realm
- in `krb5.realms`.
- '';
- };
-
- kerberosAdminServer = mkOption {
- type = with types; nullOr str;
- default = null;
- example = "kerberos.mit.edu";
- description = lib.mdDoc ''
- DEPRECATED, please pass an `admin_server` attribute
- to a realm in `krb5.realms`.
- '';
- };
- };
- };
-
- ###### implementation
-
- config = mkIf cfg.enable {
-
- environment.systemPackages = [ cfg.kerberos ];
-
- environment.etc."krb5.conf".text = if isString cfg.config
- then cfg.config
- else (''
- [libdefaults]
- ${mkMappedAttrsOrString mergedConfig.libdefaults}
-
- [realms]
- ${mkMappedAttrsOrString mergedConfig.realms}
-
- [domain_realm]
- ${mkMappedAttrsOrString mergedConfig.domain_realm}
-
- [capaths]
- ${mkMappedAttrsOrString mergedConfig.capaths}
-
- [appdefaults]
- ${mkMappedAttrsOrString mergedConfig.appdefaults}
-
- [plugins]
- ${mkMappedAttrsOrString mergedConfig.plugins}
- '' + optionalString (m