Merge branch 'pkgs/systemd/journald_http_gateway' of git://github.com/offlinehacker/nixpkgs
systemd: python support & journal http gateway Conflicts: nixos/modules/misc/ids.nix
This commit is contained in:
commit
0c12dd3ded
@ -118,6 +118,7 @@
|
|||||||
searx = 107;
|
searx = 107;
|
||||||
kippo = 108;
|
kippo = 108;
|
||||||
jenkins = 109;
|
jenkins = 109;
|
||||||
|
systemd-journal-gateway = 110;
|
||||||
|
|
||||||
# When adding a uid, make sure it doesn't match an existing gid.
|
# When adding a uid, make sure it doesn't match an existing gid.
|
||||||
|
|
||||||
@ -214,6 +215,7 @@
|
|||||||
searx = 107;
|
searx = 107;
|
||||||
kippo = 108;
|
kippo = 108;
|
||||||
jenkins = 109;
|
jenkins = 109;
|
||||||
|
systemd-journal-gateway = 110;
|
||||||
|
|
||||||
# When adding a gid, make sure it doesn't match an existing uid.
|
# When adding a gid, make sure it doesn't match an existing uid.
|
||||||
|
|
||||||
|
@ -130,6 +130,11 @@ let
|
|||||||
++ optionals cfg.enableEmergencyMode [
|
++ optionals cfg.enableEmergencyMode [
|
||||||
"emergency.target"
|
"emergency.target"
|
||||||
"emergency.service"
|
"emergency.service"
|
||||||
|
]
|
||||||
|
|
||||||
|
++ optionals config.services.journald.enableHttpGateway [
|
||||||
|
"systemd-journal-gatewayd.socket"
|
||||||
|
"systemd-journal-gatewayd.service"
|
||||||
];
|
];
|
||||||
|
|
||||||
upstreamWants =
|
upstreamWants =
|
||||||
@ -371,6 +376,10 @@ let
|
|||||||
|
|
||||||
ln -s ../local-fs.target ../remote-fs.target ../network.target ../nss-lookup.target \
|
ln -s ../local-fs.target ../remote-fs.target ../network.target ../nss-lookup.target \
|
||||||
../nss-user-lookup.target ../swap.target $out/multi-user.target.wants/
|
../nss-user-lookup.target ../swap.target $out/multi-user.target.wants/
|
||||||
|
|
||||||
|
${ optionalString config.services.journald.enableHttpGateway ''
|
||||||
|
ln -s ../systemd-journal-gatewayd.service $out/multi-user-target.wants/
|
||||||
|
''}
|
||||||
''; # */
|
''; # */
|
||||||
|
|
||||||
in
|
in
|
||||||
@ -550,6 +559,14 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.journald.enableHttpGateway = mkOption {
|
||||||
|
default = false;
|
||||||
|
type = types.bool;
|
||||||
|
description = ''
|
||||||
|
Enable journal http gateway
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
services.logind.extraConfig = mkOption {
|
services.logind.extraConfig = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
type = types.lines;
|
type = types.lines;
|
||||||
@ -659,6 +676,8 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
users.extraGroups.systemd-journal.gid = config.ids.gids.systemd-journal;
|
users.extraGroups.systemd-journal.gid = config.ids.gids.systemd-journal;
|
||||||
|
users.extraUsers.systemd-journal-gateway.uid = config.ids.uids.systemd-journal-gateway;
|
||||||
|
users.extraGroups.systemd-journal-gateway.gid = config.ids.gids.systemd-journal-gateway;
|
||||||
|
|
||||||
# Generate timer units for all services that have a ‘startAt’ value.
|
# Generate timer units for all services that have a ‘startAt’ value.
|
||||||
systemd.timers =
|
systemd.timers =
|
||||||
|
@ -1,11 +1,14 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, intltool, gperf, libcap, dbus, kmod
|
{ stdenv, fetchurl, pkgconfig, intltool, gperf, libcap, dbus, kmod
|
||||||
, xz, pam, acl, cryptsetup, libuuid, m4, utillinux
|
, xz, pam, acl, cryptsetup, libuuid, m4, utillinux
|
||||||
, glib, kbd, libxslt, coreutils, libgcrypt, sysvtools, docbook_xsl
|
, glib, kbd, libxslt, coreutils, libgcrypt, sysvtools, docbook_xsl
|
||||||
, kexectools
|
, kexectools, libmicrohttpd
|
||||||
|
, python ? null, pythonSupport ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert stdenv.isLinux;
|
assert stdenv.isLinux;
|
||||||
|
|
||||||
|
assert pythonSupport -> python != null;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "203";
|
version = "203";
|
||||||
name = "systemd-${version}";
|
name = "systemd-${version}";
|
||||||
@ -25,7 +28,8 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs =
|
buildInputs =
|
||||||
[ pkgconfig intltool gperf libcap dbus.libs kmod xz pam acl
|
[ pkgconfig intltool gperf libcap dbus.libs kmod xz pam acl
|
||||||
/* cryptsetup */ libuuid m4 glib libxslt libgcrypt docbook_xsl
|
/* cryptsetup */ libuuid m4 glib libxslt libgcrypt docbook_xsl
|
||||||
];
|
libmicrohttpd
|
||||||
|
] ++ stdenv.lib.optional pythonSupport python;
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
[ "--localstatedir=/var"
|
[ "--localstatedir=/var"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user