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-boot = handleTest ./systemd-boot.nix {};
|
||||
systemd-confinement = handleTest ./systemd-confinement.nix {};
|
||||
systemd-journal = handleTest ./systemd-journal.nix {};
|
||||
systemd-timesyncd = handleTest ./systemd-timesyncd.nix {};
|
||||
systemd-networkd-vrf = handleTest ./systemd-networkd-vrf.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
|
||||
, kexectools
|
||||
, bashInteractive
|
||||
, libmicrohttpd
|
||||
|
||||
, withAnalyze ? true
|
||||
, withApparmor ? true
|
||||
@ -71,7 +72,7 @@
|
||||
, withNss ? true
|
||||
, withPCRE2 ? true
|
||||
, withPolkit ? true
|
||||
, withRemote ? false # has always been disabled on NixOS, upstream version appears broken anyway
|
||||
, withRemote ? true
|
||||
, withResolved ? true
|
||||
, withShellCompletions ? true
|
||||
, withTimedated ? true
|
||||
@ -201,6 +202,7 @@ stdenv.mkDerivation {
|
||||
++ lib.optional withPCRE2 pcre2
|
||||
++ lib.optional withResolved libgpgerror
|
||||
++ lib.optional withSelinux libselinux
|
||||
++ lib.optional withRemote libmicrohttpd
|
||||
;
|
||||
|
||||
#dontAddPrefix = true;
|
||||
|
@ -18812,6 +18812,7 @@ in
|
||||
withNss = false;
|
||||
withPCRE2 = false;
|
||||
withPolkit = false;
|
||||
withRemote = false;
|
||||
withResolved = false;
|
||||
withShellCompletions = false;
|
||||
withTimedated = false;
|
||||
|
Loading…
Reference in New Issue
Block a user