Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
24f176f
nixos/mattermost: fix JoinsNamespaceOf config location
ryantm Jun 11, 2018
e905a3a
nix-update-source: 0.5.0 -> 0.6.3
timbertson Jun 18, 2018
1b08966
journaldriver: init at 1.0.0
tazjin Jun 17, 2018
59e5aab
nixos/journaldriver: add module for journaldriver log forwarder
tazjin Jun 17, 2018
c3e0592
esh: init at 0.1.1
mnacamura Jun 19, 2018
f077cde
wakatime: 10.1.0 -> 10.2.1
eadwu Jun 19, 2018
d21653f
haskell generic-buider: nativeGhc should be a depsBuildBuild
pSub Jun 19, 2018
37eca93
haskell generic-builder: Only pass --extra-* for host deps
Ericson2314 Jun 19, 2018
9374c3f
platformio: Fix building of overridden click package
Moredread Jun 19, 2018
2388a9b
platformio: 3.5.2 -> 3.5.3
Moredread Jun 19, 2018
802ea37
git-secret: 0.2.3 -> 0.2.4
Jun 19, 2018
cb1fcff
fnotifystat: 0.02.00 -> 0.02.01
Jun 19, 2018
2b534c6
clex: 4.6.patch6 -> 4.6.patch9
Jun 19, 2018
a13cc11
debootstrap: 1.0.101 -> 1.0.102
Jun 19, 2018
5d07801
python.pkgs.cython: fix tests
FRidh Jun 10, 2018
98eefba
wesnoth: 1.14.2 -> 1.14.3 (#42195)
r-ryantm Jun 19, 2018
39f01c1
adapta-gtk-theme: 3.93.1.18 -> 3.93.1.22
Jun 19, 2018
12a554d
brial: 1.2.3 -> 1.2.4
Jun 19, 2018
48fd0e6
evolution-data-server: 3.28.2 → 3.28.3
jtojnar Jun 19, 2018
843a1cd
gnome3.evolution: 3.28.2 → 3.28.3
jtojnar Jun 19, 2018
142a228
Merge pull request #42247 from obsidiansystems/yet-more-haskell-cross
Ericson2314 Jun 20, 2018
77f3ac7
altcoins.bitcoin: 0.16.0 -> 0.16.1
Jun 20, 2018
696861f
direnv: 2.15.1 -> 2.17.0
dywedir Jun 20, 2018
1c1e32b
ddrescueview: init at 0.4alpha3
orivej Jun 20, 2018
6916565
ddrutility: init at 2.8
orivej Jun 20, 2018
8f558a6
firefox-devedition-bin: 61.0b14 -> 62.0b1
adisbladis Jun 20, 2018
c5fb293
Merge pull request #42280 from r-ryantm/auto-update/debootstrap
adisbladis Jun 20, 2018
bbf359e
esniper: update to latest version 0.35.0
peti Jun 20, 2018
adc4608
Merge pull request #42292 from dywedir/direnv
Mic92 Jun 20, 2018
b1d291a
Merge pull request #42220 from timbertson/nix-update-source
Mic92 Jun 20, 2018
36600b2
Merge pull request #42287 from ryantm/mattermost-joinsnamespaceof
Mic92 Jun 20, 2018
7afab16
Merge pull request #42254 from Moredread/platformio/bump
Mic92 Jun 20, 2018
a940a39
Merge pull request #42278 from r-ryantm/auto-update/clex
Mic92 Jun 20, 2018
ec93a51
grails: 3.3.5 -> 3.3.6
Jun 19, 2018
a396374
ethtool: 4.16 -> 4.17
Jun 19, 2018
53f86fb
Merge pull request #42288 from r-ryantm/auto-update/bitcoin
Mic92 Jun 20, 2018
5b2dc32
Merge pull request #42286 from r-ryantm/auto-update/brial
Mic92 Jun 20, 2018
fd7751c
Merge pull request #42285 from r-ryantm/auto-update/adapta-gtk-theme
Mic92 Jun 20, 2018
263d3ab
Merge pull request #42271 from r-ryantm/auto-update/fnotifystat
Mic92 Jun 20, 2018
22bc57c
Merge pull request #42264 from r-ryantm/auto-update/git-secret
Mic92 Jun 20, 2018
d5437a2
Merge pull request #42238 from eadwu/wakatime/10.2.1
Mic92 Jun 20, 2018
f0e7af3
Merge pull request #42236 from mnacamura/esh
pSub Jun 20, 2018
2f37153
facter: 3.11.1 -> 3.11.2 (#42273)
r-ryantm Jun 20, 2018
cac9f08
Merge pull request #42134 from tazjin/feat/journaldriver
fpletz Jun 20, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 112 additions & 0 deletions nixos/modules/services/logging/journaldriver.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
# This module implements a systemd service for running journaldriver,
# a log forwarding agent that sends logs from journald to Stackdriver
# Logging.
#
# It can be enabled without extra configuration when running on GCP.
# On machines hosted elsewhere, the other configuration options need
# to be set.
#
# For further information please consult the documentation in the
# upstream repository at: https://github.com/aprilabank/journaldriver/

{ config, lib, pkgs, ...}:

with lib; let cfg = config.services.journaldriver;
in {
options.services.journaldriver = {
enable = mkOption {
type = types.bool;
default = false;
description = ''
Whether to enable journaldriver to forward journald logs to
Stackdriver Logging.
'';
};

logLevel = mkOption {
type = types.str;
default = "info";
description = ''
Log level at which journaldriver logs its own output.
'';
};

logName = mkOption {
type = with types; nullOr str;
default = null;
description = ''
Configures the name of the target log in Stackdriver Logging.
This option can be set to, for example, the hostname of a
machine to improve the user experience in the logging
overview.
'';
};

googleCloudProject = mkOption {
type = with types; nullOr str;
default = null;
description = ''
Configures the name of the Google Cloud project to which to
forward journald logs.

This option is required on non-GCP machines, but should not be
set on GCP instances.
'';
};

logStream = mkOption {
type = with types; nullOr str;
default = null;
description = ''
Configures the name of the Stackdriver Logging log stream into
which to write journald entries.

This option is required on non-GCP machines, but should not be
set on GCP instances.
'';
};

applicationCredentials = mkOption {
type = with types; nullOr path;
default = null;
description = ''
Path to the service account private key (in JSON-format) used
to forward log entries to Stackdriver Logging on non-GCP
instances.

This option is required on non-GCP machines, but should not be
set on GCP instances.
'';
};
};

config = mkIf cfg.enable {
systemd.services.journaldriver = {
description = "Stackdriver Logging journal forwarder";
script = "${pkgs.journaldriver}/bin/journaldriver";
after = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];

serviceConfig = {
Restart = "always";
DynamicUser = true;

# This directive lets systemd automatically configure
# permissions on /var/lib/journaldriver, the directory in
# which journaldriver persists its cursor state.
StateDirectory = "journaldriver";

# This group is required for accessing journald.
SupplementaryGroups = "systemd-journal";
};

environment = {
RUST_LOG = cfg.logLevel;
LOG_NAME = cfg.logName;
LOG_STREAM = cfg.logStream;
GOOGLE_CLOUD_PROJECT = cfg.googleCloudProject;
GOOGLE_APPLICATION_CREDENTIALS = cfg.applicationCredentials;
};
};
};
}
2 changes: 1 addition & 1 deletion nixos/modules/services/web-apps/mattermost.nix
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@ in
Group = cfg.group;
ExecStart = "${pkgs.mattermost}/bin/mattermost-platform";
WorkingDirectory = "${cfg.statePath}";
JoinsNamespaceOf = mkIf cfg.localDatabaseCreate "postgresql.service";
Restart = "always";
RestartSec = "10";
LimitNOFILE = "49152";
};
unitConfig.JoinsNamespaceOf = mkIf cfg.localDatabaseCreate "postgresql.service";
};
})
(mkIf cfg.matterircd.enable {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/altcoins/bitcoin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
with stdenv.lib;
stdenv.mkDerivation rec{
name = "bitcoin" + (toString (optional (!withGui) "d")) + "-" + version;
version = "0.16.0";
version = "0.16.1";

src = fetchurl {
urls = [ "https://bitcoincore.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz"
"https://bitcoin.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz"
];
sha256 = "0h7flgsfjzbqajwv8ih686yyxxljhf8krhm8jxranb4kglww1glc";
sha256 = "1zkqp93yircd3pbxczxfnibkpq0sgcv5r7wg6d196b9pwgr9zd39";
};

nativeBuildInputs = [ pkgconfig autoreconfHook ];
Expand Down
Loading