diff options
author | Peter Simons <simons@cryp.to> | 2014-11-03 23:03:01 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2014-11-03 23:03:01 +0100 |
commit | b5fed52c43360c8a1e6b632236ad41d98c59f804 (patch) | |
tree | efcffbcbed9a980ee912f914baf535bf6181e74d /nixos | |
parent | 0346efdabfeef55d64c738e093795acc0e80d2d8 (diff) | |
parent | 8d605dafc65ede7c4d33178192807612527c911d (diff) | |
download | nixlib-b5fed52c43360c8a1e6b632236ad41d98c59f804.tar nixlib-b5fed52c43360c8a1e6b632236ad41d98c59f804.tar.gz nixlib-b5fed52c43360c8a1e6b632236ad41d98c59f804.tar.bz2 nixlib-b5fed52c43360c8a1e6b632236ad41d98c59f804.tar.lz nixlib-b5fed52c43360c8a1e6b632236ad41d98c59f804.tar.xz nixlib-b5fed52c43360c8a1e6b632236ad41d98c59f804.tar.zst nixlib-b5fed52c43360c8a1e6b632236ad41d98c59f804.zip |
Merge pull request #4238 from wkennington/master.boost
Make boost 156 the default
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/installer/cd-dvd/system-tarball-fuloong2f.nix | 1 | ||||
-rw-r--r-- | nixos/modules/profiles/base.nix | 1 | ||||
-rw-r--r-- | nixos/modules/rename.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/logging/syslog-ng.nix | 18 |
4 files changed, 16 insertions, 5 deletions
diff --git a/nixos/modules/installer/cd-dvd/system-tarball-fuloong2f.nix b/nixos/modules/installer/cd-dvd/system-tarball-fuloong2f.nix index 7d3346e4ea1f..bbf0311c04d6 100644 --- a/nixos/modules/installer/cd-dvd/system-tarball-fuloong2f.nix +++ b/nixos/modules/installer/cd-dvd/system-tarball-fuloong2f.nix @@ -76,7 +76,6 @@ in pkgs.ntfsprogs # for resizing NTFS partitions pkgs.btrfsProgs pkgs.jfsutils - pkgs.jfsrec # Some compression/archiver tools. pkgs.unzip diff --git a/nixos/modules/profiles/base.nix b/nixos/modules/profiles/base.nix index 7a6f76572058..3d1412b56859 100644 --- a/nixos/modules/profiles/base.nix +++ b/nixos/modules/profiles/base.nix @@ -34,7 +34,6 @@ pkgs.xfsprogs pkgs.jfsutils pkgs.f2fs-tools - #pkgs.jfsrec # disabled because of Boost dependency # Some compression/archiver tools. pkgs.unzip diff --git a/nixos/modules/rename.nix b/nixos/modules/rename.nix index ea7d9763ce64..073a22207652 100644 --- a/nixos/modules/rename.nix +++ b/nixos/modules/rename.nix @@ -131,6 +131,5 @@ in zipModules ([] ++ obsolete' [ "programs" "bash" "enable" ] ++ obsolete' [ "services" "samba" "defaultShare" ] ++ obsolete' [ "services" "syslog-ng" "serviceName" ] -++ obsolete' [ "services" "syslog-ng" "listenToJournal" ] ) diff --git a/nixos/modules/services/logging/syslog-ng.nix b/nixos/modules/services/logging/syslog-ng.nix index 2bf6d1ff7904..f3991a411ec4 100644 --- a/nixos/modules/services/logging/syslog-ng.nix +++ b/nixos/modules/services/logging/syslog-ng.nix @@ -43,6 +43,15 @@ in { The package providing syslog-ng binaries. ''; }; + listenToJournal = mkOption { + type = types.bool; + default = true; + description = '' + Whether syslog-ng should listen to the syslog socket used + by journald, and therefore receive all logs that journald + produces. + ''; + }; extraModulePaths = mkOption { type = types.listOf types.str; default = []; @@ -65,7 +74,7 @@ in { configHeader = mkOption { type = types.lines; default = '' - @version: 3.6 + @version: 3.5 @include "scl.conf" ''; description = '' @@ -77,13 +86,18 @@ in { }; config = mkIf cfg.enable { + systemd.sockets.syslog = mkIf cfg.listenToJournal { + wantedBy = [ "sockets.target" ]; + socketConfig.Service = "syslog-ng.service"; + }; systemd.services.syslog-ng = { description = "syslog-ng daemon"; preStart = "mkdir -p /{var,run}/syslog-ng"; - wantedBy = [ "multi-user.target" ]; + wantedBy = optional (!cfg.listenToJournal) "multi-user.target"; after = [ "multi-user.target" ]; # makes sure hostname etc is set serviceConfig = { Type = "notify"; + Sockets = if cfg.listenToJournal then "syslog.socket" else null; StandardOutput = "null"; Restart = "on-failure"; ExecStart = "${cfg.package}/sbin/syslog-ng ${concatStringsSep " " syslogngOptions}"; |