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: ee4e6ebbfaad
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b6c696cc6fca
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jan 5, 2018

  1. Copy the full SHA
    c883311 View commit details

Commits on Jan 14, 2018

  1. Merge pull request #33444 from rnhmjoj/dnscrypt-wrapper

    nixos/dnscrypt-wrapper: fix rotate script failing to restart the service
    joachifm authored Jan 14, 2018

    Verified

    This commit was signed with the committer’s verified signature.
    vcunat Vladimír Čunát
    Copy the full SHA
    b6c696c View commit details
Showing with 10 additions and 0 deletions.
  1. +10 −0 nixos/modules/services/networking/dnscrypt-wrapper.nix
10 changes: 10 additions & 0 deletions nixos/modules/services/networking/dnscrypt-wrapper.nix
Original file line number Diff line number Diff line change
@@ -145,6 +145,16 @@ in {
};
users.groups.dnscrypt-wrapper = { };

security.polkit.extraConfig = ''
// Allow dnscrypt-wrapper user to restart dnscrypt-wrapper.service
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.systemd1.manage-units" &&
action.lookup("unit") == "dnscrypt-wrapper.service" &&
subject.user == "dnscrypt-wrapper") {
return polkit.Result.YES;
}
});
'';

systemd.services.dnscrypt-wrapper = {
description = "dnscrypt-wrapper daemon";