Skip to content

Commit

Permalink
networkmanager: fix dispatcher scripts (#24507)
Browse files Browse the repository at this point in the history
networkmanager used `source` to mean `text` and wrote dispatcher scripts with the default mode (0666), which means networkmanager wouldn't call them.
  • Loading branch information
pngwjpgh authored and joachifm committed Apr 9, 2017
1 parent 42e1314 commit 773c456
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nixos/modules/services/networking/networkmanager.nix
Expand Up @@ -162,9 +162,9 @@ in {
type = types.listOf (types.submodule {
options = {
source = mkOption {
type = types.str;
type = types.path;
description = ''
A script source.
A script.
'';
};

Expand Down Expand Up @@ -224,7 +224,7 @@ in {
target = "NetworkManager/dispatcher.d/02overridedns";
}
++ lib.imap (i: s: {
text = s.source;
inherit (s) source;
target = "NetworkManager/dispatcher.d/${dispatcherTypesSubdirMap.${s.type}}03userscript${lib.fixedWidthNumber 4 i}";
}) cfg.dispatcherScripts;

Expand Down

0 comments on commit 773c456

Please sign in to comment.