diff options
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/gitea.nix | 2 | ||||
-rw-r--r-- | nixos/modules/system/boot/systemd/initrd.nix | 19 |
2 files changed, 1 insertions, 20 deletions
diff --git a/nixos/modules/services/misc/gitea.nix b/nixos/modules/services/misc/gitea.nix index a5d7a73dd06aa..0c414c2466bf4 100644 --- a/nixos/modules/services/misc/gitea.nix +++ b/nixos/modules/services/misc/gitea.nix @@ -553,7 +553,7 @@ in ${replaceSecretBin} '#internaltoken#' '${internalToken}' '${runConfig}' ${lib.optionalString cfg.lfs.enable '' - ${replaceSecretBin} '#lfsjwtsecret#' '${lfsJwtSecret}' '${runConfig}'" + ${replaceSecretBin} '#lfsjwtsecret#' '${lfsJwtSecret}' '${runConfig}' ''} ${lib.optionalString (cfg.mailerPasswordFile != null) '' diff --git a/nixos/modules/system/boot/systemd/initrd.nix b/nixos/modules/system/boot/systemd/initrd.nix index 6f991b84bbd03..c9c219d0a0a59 100644 --- a/nixos/modules/system/boot/systemd/initrd.nix +++ b/nixos/modules/system/boot/systemd/initrd.nix @@ -338,25 +338,6 @@ in { }; config = mkIf (config.boot.initrd.enable && cfg.enable) { - assertions = map (name: { - assertion = config.boot.initrd.${name} == ""; - message = '' - systemd stage 1 does not support 'boot.initrd.${name}'. Please - convert it to analogous systemd units in 'boot.initrd.systemd'. - - Definitions: - ${lib.concatMapStringsSep "\n" ({ file, ... }: "- ${file}") options.boot.initrd.${name}.definitionsWithLocations} - ''; - }) [ - "preFailCommands" - "preDeviceCommands" - "preLVMCommands" - "postDeviceCommands" - "postMountCommands" - "extraUtilsCommands" - "extraUtilsCommandsTest" - ]; - system.build = { inherit initialRamdisk; }; boot.initrd.availableKernelModules = [ |