mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-09 03:55:44 +03:00
Merge master into staging-next
This commit is contained in:
commit
97b9d455ea
381 changed files with 799 additions and 643 deletions
|
@ -1,7 +1,9 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
|
||||
inherit (config.security) wrapperDir wrappers;
|
||||
inherit (config.security) wrapperDir;
|
||||
|
||||
wrappers = lib.filterAttrs (name: value: value.enable) config.security.wrappers;
|
||||
|
||||
parentWrapperDir = dirOf wrapperDir;
|
||||
|
||||
|
@ -41,6 +43,11 @@ let
|
|||
// { description = "file mode string"; };
|
||||
|
||||
wrapperType = lib.types.submodule ({ name, config, ... }: {
|
||||
options.enable = lib.mkOption
|
||||
{ type = lib.types.bool;
|
||||
default = true;
|
||||
description = "Whether to enable the wrapper.";
|
||||
};
|
||||
options.source = lib.mkOption
|
||||
{ type = lib.types.path;
|
||||
description = "The absolute path to the program to be wrapped.";
|
||||
|
|
|
@ -15,6 +15,8 @@ in {
|
|||
services.metabase = {
|
||||
enable = mkEnableOption "Metabase service";
|
||||
|
||||
package = lib.mkPackageOption pkgs "metabase" { };
|
||||
|
||||
listen = {
|
||||
ip = mkOption {
|
||||
type = types.str;
|
||||
|
@ -92,7 +94,7 @@ in {
|
|||
serviceConfig = {
|
||||
DynamicUser = true;
|
||||
StateDirectory = baseNameOf dataDir;
|
||||
ExecStart = "${pkgs.metabase}/bin/metabase";
|
||||
ExecStart = lib.getExe cfg.package;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -249,7 +249,7 @@ in {
|
|||
OIDC_NAME = "MyLogin";
|
||||
OIDC_DISPLAY_NAME_CLAIMS = "name";
|
||||
OIDC_CLIENT_ID = "bookstack";
|
||||
OIDC_CLIENT_SECRET = {_secret = "/run/keys/oidc_secret"};
|
||||
OIDC_CLIENT_SECRET = {_secret = "/run/keys/oidc_secret";};
|
||||
OIDC_ISSUER = "https://keycloak.example.com/auth/realms/My%20Realm";
|
||||
OIDC_ISSUER_DISCOVER = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue