Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2a9e034690a2
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2143f6f34fb7
Choose a head ref
  • 10 commits
  • 9 files changed
  • 7 contributors

Commits on Jul 6, 2019

  1. vimPlugins: Update

    rvolosatovs authored and Matthieu Coudron committed Jul 6, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    rasendubi Oleksii Shmalko
    Copy the full SHA
    d90c41b View commit details
  2. iperf: 3.6 -> 3.7

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/iperf/versions
    r-ryantm authored and Matthieu Coudron committed Jul 6, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c0773aa View commit details
  3. nixos/ksm: add option sleep

    Izorkin committed Jul 6, 2019
    Copy the full SHA
    8364ade View commit details
  4. Copy the full SHA
    6e592fa View commit details
  5. Copy the full SHA
    fb4d71a View commit details
  6. cue: init at 0.0.3 (#64367)

    solson authored and kalbasit committed Jul 6, 2019
    Copy the full SHA
    0b492c0 View commit details
  7. lazydocker: init at 0.5 (#64320)

    das-g authored and kalbasit committed Jul 6, 2019
    Copy the full SHA
    bbaee55 View commit details
  8. kustomize: 2.0.3 -> 3.0.0 (#64342)

    vdemeester authored and kalbasit committed Jul 6, 2019
    Copy the full SHA
    d567c48 View commit details
  9. Merge pull request #64329 from Izorkin/netdata

    nixos/netdata: update service config
    Mic92 authored Jul 6, 2019
    Copy the full SHA
    e111f23 View commit details
  10. Merge pull request #64355 from Izorkin/hardwareKSM

    nixos/ksm: add option sleep
    Mic92 authored Jul 6, 2019
    Copy the full SHA
    2143f6f View commit details
22 changes: 19 additions & 3 deletions nixos/modules/hardware/ksm.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,32 @@
{ config, lib, ... }:

{
options.hardware.enableKSM = lib.mkEnableOption "Kernel Same-Page Merging";
with lib;

config = lib.mkIf config.hardware.enableKSM {
let
cfg = config.hardware.ksm;

in {
options.hardware.ksm = {
enable = mkEnableOption "Kernel Same-Page Merging";
sleep = mkOption {
type = types.nullOr types.int;
default = null;
description = ''
How many milliseconds ksmd should sleep between scans.
Setting it to <literal>null</literal> uses the kernel's default time.
'';
};
};

config = mkIf cfg.enable {
systemd.services.enable-ksm = {
description = "Enable Kernel Same-Page Merging";
wantedBy = [ "multi-user.target" ];
after = [ "systemd-udev-settle.service" ];
script = ''
if [ -e /sys/kernel/mm/ksm ]; then
echo 1 > /sys/kernel/mm/ksm/run
${optionalString (cfg.sleep != null) ''echo ${toString cfg.sleep} > /sys/kernel/mm/ksm/sleep_millisecs''}
fi
'';
};
3 changes: 3 additions & 0 deletions nixos/modules/rename.nix
Original file line number Diff line number Diff line change
@@ -241,6 +241,9 @@ with lib;
# binfmt
(mkRenamedOptionModule [ "boot" "binfmtMiscRegistrations" ] [ "boot" "binfmt" "registrations" ])

# KSM
(mkRenamedOptionModule [ "hardware" "enableKSM" ] [ "hardware" "ksm" "enable" ])

] ++ (flip map [ "blackboxExporter" "collectdExporter" "fritzboxExporter"
"jsonExporter" "minioExporter" "nginxExporter" "nodeExporter"
"snmpExporter" "unifiExporter" "varnishExporter" ]
18 changes: 15 additions & 3 deletions nixos/modules/services/monitoring/netdata.nix
Original file line number Diff line number Diff line change
@@ -141,11 +141,18 @@ in {
path = (with pkgs; [ gawk curl ]) ++ lib.optional cfg.python.enable
(pkgs.python3.withPackages cfg.python.extraPackages);
serviceConfig = {
User = cfg.user;
Group = cfg.group;
Environment="PYTHONPATH=${pkgs.netdata}/libexec/netdata/python.d/python_modules";
ExecStart = "${pkgs.netdata}/bin/netdata -D -c ${configFile}";
ExecStart = "${pkgs.netdata}/bin/netdata -P /run/netdata/netdata.pid -D -c ${configFile}";
ExecReload = "${pkgs.utillinux}/bin/kill -s HUP -s USR1 -s USR2 $MAINPID";
TimeoutStopSec = 60;
# User and group
User = cfg.user;
Group = cfg.group;
# Runtime directory and mode
RuntimeDirectory = "netdata";
RuntimeDirectoryMode = "0755";
# Performance
LimitNOFILE = "30000";
};
};

@@ -165,6 +172,11 @@ in {
permissions = "u+rx,g+rx,o-rwx";
};

security.pam.loginLimits = [
{ domain = "netdata"; type = "soft"; item = "nofile"; value = "10000"; }
{ domain = "netdata"; type = "hard"; item = "nofile"; value = "30000"; }
];

users.users = optional (cfg.user == defaultUser) {
name = defaultUser;
};
27 changes: 27 additions & 0 deletions pkgs/development/tools/cue/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ buildGoModule, fetchgit, stdenv }:

buildGoModule rec {
pname = "cue";
version = "0.0.3";

src = fetchgit {
url = "https://cue.googlesource.com/cue";
rev = "v${version}";
sha256 = "1abvvgicr64ssiprkircih2nrbcr1yqxf1qkl21kh0ww1xfp0rw7";
};

modSha256 = "0r5vbplcfq1rsp2jnixq6lfbpcv7grf0q38na76qy7pjb57zikb6";

subPackages = [ "cmd/cue" ];

buildFlagsArray = [
"-ldflags=-X cuelang.org/go/cmd/cue/cmd.version=${version}"
];

meta = {
description = "A data constraint language which aims to simplify tasks involving defining and using data.";
homepage = https://cue.googlesource.com/cue;
maintainers = with stdenv.lib.maintainers; [ solson ];
license = stdenv.lib.licenses.asl20;
};
}
15 changes: 9 additions & 6 deletions pkgs/development/tools/kustomize/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{ lib, buildGoPackage, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub }:

buildGoPackage rec {
buildGoModule rec {
name = "kustomize-${version}";
version = "2.0.3";
# rev is the 2.0.3 commit, mainly for kustomize version command output
rev = "a6f65144121d1955266b0cd836ce954c04122dc8";
version = "3.0.0";
# rev is the 3.0.0 commit, mainly for kustomize version command output
rev = "e0bac6ad192f33d993f11206e24f6cda1d04c4ec";

goPackagePath = "sigs.k8s.io/kustomize";
subPackages = [ "cmd/kustomize" ];

buildFlagsArray = let t = "${goPackagePath}/pkg/commands/misc"; in ''
-ldflags=
@@ -16,12 +17,14 @@ buildGoPackage rec {
'';

src = fetchFromGitHub {
sha256 = "1dfkpx9rllj1bzm5f52bx404kdds3zx1h38yqri9ha3p3pcb1bbb";
sha256 = "1ywppn97gfgrwlq1nrj4kdvrdanq5ahqaa636ynyp9yiv9ibziq6";
rev = "v${version}";
repo = "kustomize";
owner = "kubernetes-sigs";
};

modSha256 = "0w8sp73pmj2wqrg7x7z8diglyfq6c6gn9mmck0k1gk90nv7s8rf1";

meta = with lib; {
description = "Customization of kubernetes YAML configurations";
longDescription = ''
Loading