Unverified Commit a81b6401 authored by Florian Klink's avatar Florian Klink Committed by GitHub
Browse files

Merge pull request #191032 from yu-re-ka/systemd-nixos-utmp

nixos/systemd: conditionally include systemd-update-utmp upstream unit 
parents 398cb29d 19686a44
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ let
      "final.target"
      "kexec.target"
      "systemd-kexec.service"
      "systemd-update-utmp.service"
    ] ++ lib.optional (cfg.package.withUtmp or true) "systemd-update-utmp.service" ++ [

      # Password entry.
      "systemd-ask-password-console.path"
+4 −2
Original line number Diff line number Diff line
@@ -100,6 +100,7 @@
, withTimesyncd ? true
, withTpm2Tss ? !stdenv.hostPlatform.isMusl
, withUserDb ? !stdenv.hostPlatform.isMusl
, withUtmp ? !stdenv.hostPlatform.isMusl
  # tests assume too much system access for them to be feasible for us right now
, withTests ? false

@@ -502,9 +503,10 @@ stdenv.mkDerivation {
    "-Dbpf-framework=true"
  ] ++ lib.optionals withTpm2Tss [
    "-Dtpm2=true"
  ] ++ lib.optionals (!withUtmp) [
    "-Dutmp=false"
  ] ++ lib.optionals stdenv.hostPlatform.isMusl [
    "-Dgshadow=false"
    "-Dutmp=false"
    "-Didn=false"
  ];
  preConfigure =
@@ -683,7 +685,7 @@ stdenv.mkDerivation {
    # runtime; otherwise we can't and we need to reboot.
    interfaceVersion = 2;

    inherit withCryptsetup withHostnamed withImportd withLocaled withMachined withTimedated util-linux kmod kbd;
    inherit withCryptsetup withHostnamed withImportd withLocaled withMachined withTimedated withUtmp util-linux kmod kbd;

    tests = {
      inherit (nixosTests) switchTest;