Skip to content
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
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a0f8e3a30c97
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 720f498d7a55
Choose a head ref

Commits on Jan 8, 2018

  1. Copy the full SHA
    cf536c3 View commit details
  2. Copy the full SHA
    f7a9f96 View commit details

Commits on Jan 10, 2018

  1. Copy the full SHA
    1f9c886 View commit details

Commits on Jan 11, 2018

  1. gzip: 1.8 -> 1.9

    lsix committed Jan 11, 2018
    Copy the full SHA
    31eedb3 View commit details

Commits on Jan 13, 2018

  1. resilio-sync: fixed typo knownHosts -> entry.knownHosts

    Miguel Madrid Mencía committed Jan 13, 2018
    Copy the full SHA
    22341c4 View commit details

Commits on Jan 16, 2018

  1. molden: init at 5.7

    markuskowa committed Jan 16, 2018
    Copy the full SHA
    1c1e49a View commit details
  2. llvm-{4,5}: don't build entire project to get the manpages

    Much cheaper to build this way.
    
    Also this gives them a different name to avoid confusion
    and clutter when using `nix-env -qaP` or similar.
    dtzWill committed Jan 16, 2018
    Copy the full SHA
    33c132e View commit details
  3. Copy the full SHA
    514f67e View commit details

Commits on Jan 20, 2018

  1. vimPlugins.gitv: init

    Ma27 committed Jan 20, 2018
    Copy the full SHA
    76f1c77 View commit details
  2. Copy the full SHA
    4014b24 View commit details
  3. hackage2nix: disable broken Hydra builds

    - Ping @abbradar for broken lambdabot.
    - Ping @alunduil for broken collection-json and siren-json.
    peti committed Jan 20, 2018
    Copy the full SHA
    8bf8581 View commit details
  4. haskell.lib.markBroken: explicitly disable Hydra builds

    Recent changes [1] allow Hydra to build packages that are marked broken. To
    avoid plenty of evaluation errors on Hydra, explicitly disable Hydra builds of
    broken packages.
    
    [1] #7541 (comment)
    peti committed Jan 20, 2018
    Copy the full SHA
    a8d9a94 View commit details
  5. Copy the full SHA
    9688c0e View commit details
  6. hackage-packages.nix: automatic Haskell package set update

    This update was generated by hackage2nix v2.8-7-gfbcdc2a from Hackage revision
    commercialhaskell/all-cabal-hashes@70d584c.
    peti committed Jan 20, 2018
    Copy the full SHA
    dcf3699 View commit details
  7. Copy the full SHA
    8297025 View commit details
  8. libsigsegv: 2.11 -> 2.12

    dezgeg committed Jan 20, 2018
    Copy the full SHA
    74e2b60 View commit details
  9. Copy the full SHA
    45e47c1 View commit details
  10. Copy the full SHA
    bd57ec3 View commit details
  11. cava: 0.4.2 -> 0.6.0

    ryantm committed Jan 20, 2018
    Copy the full SHA
    db9da6d View commit details
  12. deadpixi-sam: fix on Darwin

    veprbl committed Jan 20, 2018
    Copy the full SHA
    88b485a View commit details
  13. Copy the full SHA
    6892838 View commit details
  14. Merge pull request #34089 from mnacamura/sdl2-darwin-fix

    SDL2_{gfx,mixer,net,ttf}: fix Darwin build
    LnL7 authored Jan 20, 2018
    Copy the full SHA
    1fa5c8a View commit details
  15. Merge pull request #34035 from veprbl/samfix

    deadpixi-sam: fix on Darwin, bump
    LnL7 authored Jan 20, 2018
    Copy the full SHA
    e072086 View commit details
  16. Copy the full SHA
    ea0736d View commit details

Commits on Jan 21, 2018

  1. Copy the full SHA
    58ff18b View commit details
  2. idris: Move library setup to the setup hook.

    This was broken in preHook because addEnvHooks isn't defined yet.
    shlevy committed Jan 21, 2018
    2
    Copy the full SHA
    69d4ade View commit details
  3. Copy the full SHA
    02f6827 View commit details
  4. gns3Packages.server{Stable,Preview}: Fix the build

    I initially thought python3Packages.yarl wouldn't build but then
    realized it was actually due to my overwrite.
    primeos committed Jan 21, 2018
    Copy the full SHA
    0beabe4 View commit details
  5. Copy the full SHA
    aa8217d View commit details
  6. Copy the full SHA
    5402412 View commit details
  7. mesa: 17.2.8 -> 17.3.3

    TODO: verify that S3TC works without adding libtxc*,
    and clean all the related code.
    vcunat committed Jan 21, 2018
    Copy the full SHA
    b91e846 View commit details
  8. Copy the full SHA
    d67fd9e View commit details
  9. kdialog: init at 17.12.1

    peterhoeg committed Jan 21, 2018
    Copy the full SHA
    29deef0 View commit details
  10. Merge #33948: {llvm,clang}-{4,5}: better man-pages

    Don't rebuild entire projects just to get manpages.
    vcunat committed Jan 21, 2018
    Copy the full SHA
    5fb5beb View commit details
  11. Merge #33737: gzip: 1.8 -> 1.9

    vcunat committed Jan 21, 2018
    Copy the full SHA
    22d9f2d View commit details
  12. cmake: 3.9.6 -> 3.10.2

    Close #33435 (superseded).
    vcunat committed Jan 21, 2018
    Copy the full SHA
    ba6e0ae View commit details
  13. Merge pull request #34097 from Ma27/init-react-native

    nodePackages.react-native-cli: init at 2.0.1
    Mic92 authored Jan 21, 2018
    Copy the full SHA
    cf93bcb View commit details
  14. Merge pull request #34075 from Ma27/init-gitv

    vimPlugins.gitv: init
    srhb authored Jan 21, 2018
    Copy the full SHA
    c736704 View commit details
  15. patchShebangs: preserve times, resolves #33084

    Close #33281.  Edits by vcunat:
     - use Eelco's idea: empty file instead of full copy
     - use longer name suffix to decrease the likelihood of collision
    lukateras authored and vcunat committed Jan 21, 2018
    5
    Copy the full SHA
    4b1b6ee View commit details
  16. Merge pull request #33842 from mimadrid/fix/resilio-sync

    resilio-sync: fixed typo knownHosts -> entry.knownHosts
    srhb authored Jan 21, 2018
    Copy the full SHA
    ed792d3 View commit details
  17. Merge pull request #33924 from markuskowa/molden-pr

    molden: init at 5.7
    srhb authored Jan 21, 2018
    Copy the full SHA
    adf8059 View commit details
  18. Merge pull request #34092 from ryantm/cava

    cava: 0.4.2 -> 0.6.0
    srhb authored Jan 21, 2018
    Copy the full SHA
    f0401a2 View commit details
  19. nixos/stunnel: add module (#33151)

    Leon Schuermann authored and Mic92 committed Jan 21, 2018
    Copy the full SHA
    04c4c01 View commit details
  20. Merge pull request #33717 from matthiasbeyer/fix-taskwarrior-completion

    taskwarrior: Fix bash completion
    srhb authored Jan 21, 2018
    Copy the full SHA
    8c25e0d View commit details
  21. perf: apply patch to fix build of 4.9

    lopsided98 authored and dezgeg committed Jan 21, 2018
    Copy the full SHA
    44dc31b View commit details
  22. perf: inherit makeFlags from kernel

    lopsided98 authored and dezgeg committed Jan 21, 2018
    Copy the full SHA
    94276da View commit details
  23. Merge branch 'master' into staging

    Hydra: ?compare=1428079
    vcunat committed Jan 21, 2018
    Copy the full SHA
    a94c7ba View commit details
  24. Copy the full SHA
    82c78b8 View commit details
  25. Copy the full SHA
    081b9c9 View commit details
  26. Copy the full SHA
    720f498 View commit details
Showing with 30,765 additions and 27,568 deletions.
  1. +1 −0 nixos/modules/module-list.nix
  2. +1 −1 nixos/modules/services/networking/resilio.nix
  3. +221 −0 nixos/modules/services/networking/stunnel.nix
  4. +77 −68 nixos/modules/services/x11/desktop-managers/xfce.nix
  5. +5 −3 pkgs/applications/audio/cava/default.nix
  6. +14 −14 pkgs/applications/editors/deadpixi-sam/default.nix
  7. +1 −0 pkgs/applications/kde/default.nix
  8. +18 −0 pkgs/applications/kde/kdialog.nix
  9. +1 −1 pkgs/applications/misc/taskwarrior/default.nix
  10. +9 −6 pkgs/applications/networking/gns3/default.nix
  11. +1 −1 pkgs/applications/networking/gns3/server.nix
  12. +42 −0 pkgs/applications/science/chemistry/molden/default.nix
  13. +4 −0 pkgs/build-support/setup-hooks/patch-shebangs.sh
  14. +195 −93 pkgs/desktops/xfce/default.nix
  15. +21 −15 pkgs/development/compilers/llvm/4/clang/default.nix
  16. +1 −1 pkgs/development/compilers/llvm/4/default.nix
  17. +22 −8 pkgs/development/compilers/llvm/4/llvm.nix
  18. +21 −15 pkgs/development/compilers/llvm/5/clang/default.nix
  19. +1 −1 pkgs/development/compilers/llvm/5/default.nix
  20. +22 −8 pkgs/development/compilers/llvm/5/llvm.nix
  21. +1 −1 pkgs/development/compilers/mono/generic.nix
  22. +3 −0 pkgs/development/haskell-modules/configuration-common.nix
  23. +30 −4 pkgs/development/haskell-modules/configuration-hackage2nix.yaml
  24. +553 −134 pkgs/development/haskell-modules/hackage-packages.nix
  25. +1 −1 pkgs/development/haskell-modules/lib.nix
  26. +4 −23 pkgs/development/idris-modules/build-idris-package.nix
  27. +3 −0 pkgs/development/idris-modules/idris-wrapper.nix
  28. +16 −0 pkgs/development/idris-modules/setup-hook.sh
  29. +4 −3 pkgs/development/libraries/SDL2_gfx/default.nix
  30. +4 −1 pkgs/development/libraries/SDL2_mixer/default.nix
  31. +4 −2 pkgs/development/libraries/SDL2_net/default.nix
  32. +4 −3 pkgs/development/libraries/SDL2_ttf/default.nix
  33. +2 −2 pkgs/development/libraries/glib/default.nix
  34. +2 −2 pkgs/development/libraries/gtk+/2.x.nix
  35. +2 −2 pkgs/development/libraries/libsigsegv/default.nix
  36. +3 −3 pkgs/development/libraries/mesa/default.nix
  37. +4 −3 pkgs/development/libraries/smpeg2/default.nix
  38. +43 −49 pkgs/development/node-packages/node-packages-v4.nix
  39. +1 −0 pkgs/development/node-packages/node-packages-v6.json
  40. +29,012 −26,569 pkgs/development/node-packages/node-packages-v6.nix
  41. +105 −516 pkgs/development/node-packages/node-packages-v8.nix
  42. +4 −4 pkgs/development/tools/build-managers/cmake/default.nix
  43. +12 −0 pkgs/misc/vim-plugins/default.nix
  44. +1 −0 pkgs/misc/vim-plugins/vim-plugin-names
  45. +255 −0 pkgs/os-specific/linux/kernel/perf-tools-fix-build-with-arch-x86_64.patch
  46. +4 −5 pkgs/os-specific/linux/kernel/perf.nix
  47. +2 −2 pkgs/os-specific/linux/lvm2/default.nix
  48. +2 −2 pkgs/tools/compression/gzip/default.nix
  49. +6 −2 pkgs/top-level/all-packages.nix
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
@@ -540,6 +540,7 @@
./services/networking/ssh/lshd.nix
./services/networking/ssh/sshd.nix
./services/networking/strongswan.nix
./services/networking/stunnel.nix
./services/networking/supplicant.nix
./services/networking/supybot.nix
./services/networking/syncthing.nix
2 changes: 1 addition & 1 deletion nixos/modules/services/networking/resilio.nix
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ let

search_lan = entry.searchLAN;
use_sync_trash = entry.useSyncTrash;
known_hosts = knownHosts;
known_hosts = entry.knownHosts;
}) cfg.sharedFolders;

configFile = pkgs.writeText "config.json" (builtins.toJSON ({
221 changes: 221 additions & 0 deletions nixos/modules/services/networking/stunnel.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
{ config, lib, pkgs, ... }:

with lib;

let

cfg = config.services.stunnel;
yesNo = val: if val then "yes" else "no";

verifyChainPathAssert = n: c: {
assertion = c.verifyHostname == null || (c.verifyChain || c.verifyPeer);
message = "stunnel: \"${n}\" client configuration - hostname verification " +
"is not possible without either verifyChain or verifyPeer enabled";
};

serverConfig = {
options = {
accept = mkOption {
type = types.int;
description = "On which port stunnel should listen for incoming TLS connections.";
};

connect = mkOption {
type = types.int;
description = "To which port the decrypted connection should be forwarded.";
};

cert = mkOption {
type = types.path;
description = "File containing both the private and public keys.";
};
};
};

clientConfig = {
options = {
accept = mkOption {
type = types.string;
description = "IP:Port on which connections should be accepted.";
};

connect = mkOption {
type = types.string;
description = "IP:Port destination to connect to.";
};

verifyChain = mkOption {
type = types.bool;
default = true;
description = "Check if the provided certificate has a valid certificate chain (against CAPath).";
};

verifyPeer = mkOption {
type = types.bool;
default = false;
description = "Check if the provided certificate is contained in CAPath.";
};

CAPath = mkOption {
type = types.path;
default = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
description = "Path to a file containing certificates to validate against.";
};

verifyHostname = mkOption {
type = with types; nullOr string;
default = null;
description = "If set, stunnel checks if the provided certificate is valid for the given hostname.";
};
};
};


in

{

###### interface

options = {

services.stunnel = {

enable = mkOption {
type = types.bool;
default = false;
description = "Whether to enable the stunnel TLS tunneling service.";
};

user = mkOption {
type = with types; nullOr string;
default = "nobody";
description = "The user under which stunnel runs.";
};

group = mkOption {
type = with types; nullOr string;
default = "nogroup";
description = "The group under which stunnel runs.";
};

logLevel = mkOption {
type = types.enum [ "emerg" "alert" "crit" "err" "warning" "notice" "info" "debug" ];
default = "info";
description = "Verbosity of stunnel output.";
};

fipsMode = mkOption {
type = types.bool;
default = false;
description = "Enable FIPS 140-2 mode required for compliance.";
};

enableInsecureSSLv3 = mkOption {
type = types.bool;
default = false;
description = "Enable support for the insecure SSLv3 protocol.";
};


servers = mkOption {
description = "Define the server configuations.";
type = with types; attrsOf (submodule serverConfig);
example = {
fancyWebserver = {
enable = true;
accept = 443;
connect = 8080;
cert = "/path/to/pem/file";
};
};
default = { };
};

clients = mkOption {
description = "Define the client configurations.";
type = with types; attrsOf (submodule clientConfig);
example = {
foobar = {
accept = "0.0.0.0:8080";
connect = "nixos.org:443";
verifyChain = false;
};
};
default = { };
};
};
};


###### implementation

config = mkIf cfg.enable {

assertions = concatLists [
(singleton {
assertion = (length (attrValues cfg.servers) != 0) || ((length (attrValues cfg.clients)) != 0);
message = "stunnel: At least one server- or client-configuration has to be present.";
})

(mapAttrsToList verifyChainPathAssert cfg.clients)
];

environment.systemPackages = [ pkgs.stunnel ];

environment.etc."stunnel.cfg".text = ''
${ if cfg.user != null then "setuid = ${cfg.user}" else "" }
${ if cfg.group != null then "setgid = ${cfg.group}" else "" }
debug = ${cfg.logLevel}
${ optionalString cfg.fipsMode "fips = yes" }
${ optionalString cfg.enableInsecureSSLv3 "options = -NO_SSLv3" }
; ----- SERVER CONFIGURATIONS -----
${ lib.concatStringsSep "\n"
(lib.mapAttrsToList
(n: v: ''
[${n}]
accept = ${toString v.accept}
connect = ${toString v.connect}
cert = ${v.cert}
'')
cfg.servers)
}
; ----- CLIENT CONFIGURATIONS -----
${ lib.concatStringsSep "\n"
(lib.mapAttrsToList
(n: v: ''
[${n}]
client = yes
accept = ${v.accept}
connect = ${v.connect}
verifyChain = ${yesNo v.verifyChain}
verifyPeer = ${yesNo v.verifyPeer}
${optionalString (v.CAPath != null) "CApath = ${v.CAPath}"}
${optionalString (v.verifyHostname != null) "checkHost = ${v.verifyHostname}"}
OCSPaia = yes
'')
cfg.clients)
}
'';

systemd.services.stunnel = {
description = "stunnel TLS tunneling service";
after = [ "network.target" ];
wants = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
restartTriggers = [ config.environment.etc."stunnel.cfg".source ];
serviceConfig = {
ExecStart = "${pkgs.stunnel}/bin/stunnel ${config.environment.etc."stunnel.cfg".source}";
Type = "forking";
};
};

};

}
Loading