Merge pull request #102448 from nlewo/systemd-withRemote-by-default
Systemd with the `remote` feature enabled by default
This commit is contained in:
commit
2308df8881
@ -340,6 +340,7 @@ in
|
|||||||
systemd-binfmt = handleTestOn ["x86_64-linux"] ./systemd-binfmt.nix {};
|
systemd-binfmt = handleTestOn ["x86_64-linux"] ./systemd-binfmt.nix {};
|
||||||
systemd-boot = handleTest ./systemd-boot.nix {};
|
systemd-boot = handleTest ./systemd-boot.nix {};
|
||||||
systemd-confinement = handleTest ./systemd-confinement.nix {};
|
systemd-confinement = handleTest ./systemd-confinement.nix {};
|
||||||
|
systemd-journal = handleTest ./systemd-journal.nix {};
|
||||||
systemd-timesyncd = handleTest ./systemd-timesyncd.nix {};
|
systemd-timesyncd = handleTest ./systemd-timesyncd.nix {};
|
||||||
systemd-networkd-vrf = handleTest ./systemd-networkd-vrf.nix {};
|
systemd-networkd-vrf = handleTest ./systemd-networkd-vrf.nix {};
|
||||||
systemd-networkd = handleTest ./systemd-networkd.nix {};
|
systemd-networkd = handleTest ./systemd-networkd.nix {};
|
||||||
|
20
nixos/tests/systemd-journal.nix
Normal file
20
nixos/tests/systemd-journal.nix
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
import ./make-test-python.nix ({ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
name = "systemd-journal";
|
||||||
|
meta = with pkgs.stdenv.lib.maintainers; {
|
||||||
|
maintainers = [ lewo ];
|
||||||
|
};
|
||||||
|
|
||||||
|
machine = { pkgs, lib, ... }: {
|
||||||
|
services.journald.enableHttpGateway = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
testScript = ''
|
||||||
|
machine.wait_for_unit("multi-user.target")
|
||||||
|
|
||||||
|
machine.succeed(
|
||||||
|
"${pkgs.curl}/bin/curl -s localhost:19531/machine | ${pkgs.jq}/bin/jq -e '.hostname == \"machine\"'"
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
})
|
@ -53,6 +53,7 @@
|
|||||||
, withKexectools ? lib.any (lib.meta.platformMatch stdenv.hostPlatform) kexectools.meta.platforms
|
, withKexectools ? lib.any (lib.meta.platformMatch stdenv.hostPlatform) kexectools.meta.platforms
|
||||||
, kexectools
|
, kexectools
|
||||||
, bashInteractive
|
, bashInteractive
|
||||||
|
, libmicrohttpd
|
||||||
|
|
||||||
, withAnalyze ? true
|
, withAnalyze ? true
|
||||||
, withApparmor ? true
|
, withApparmor ? true
|
||||||
@ -71,7 +72,7 @@
|
|||||||
, withNss ? true
|
, withNss ? true
|
||||||
, withPCRE2 ? true
|
, withPCRE2 ? true
|
||||||
, withPolkit ? true
|
, withPolkit ? true
|
||||||
, withRemote ? false # has always been disabled on NixOS, upstream version appears broken anyway
|
, withRemote ? true
|
||||||
, withResolved ? true
|
, withResolved ? true
|
||||||
, withShellCompletions ? true
|
, withShellCompletions ? true
|
||||||
, withTimedated ? true
|
, withTimedated ? true
|
||||||
@ -201,6 +202,7 @@ stdenv.mkDerivation {
|
|||||||
++ lib.optional withPCRE2 pcre2
|
++ lib.optional withPCRE2 pcre2
|
||||||
++ lib.optional withResolved libgpgerror
|
++ lib.optional withResolved libgpgerror
|
||||||
++ lib.optional withSelinux libselinux
|
++ lib.optional withSelinux libselinux
|
||||||
|
++ lib.optional withRemote libmicrohttpd
|
||||||
;
|
;
|
||||||
|
|
||||||
#dontAddPrefix = true;
|
#dontAddPrefix = true;
|
||||||
|
@ -18812,6 +18812,7 @@ in
|
|||||||
withNss = false;
|
withNss = false;
|
||||||
withPCRE2 = false;
|
withPCRE2 = false;
|
||||||
withPolkit = false;
|
withPolkit = false;
|
||||||
|
withRemote = false;
|
||||||
withResolved = false;
|
withResolved = false;
|
||||||
withShellCompletions = false;
|
withShellCompletions = false;
|
||||||
withTimedated = false;
|
withTimedated = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user