Skip to content

Commit 55b5f29

Browse files
committed
dhcpcd: bring back enablePrivSep option
1 parent b1bc4ea commit 55b5f29

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkgs/tools/networking/dhcpcd/default.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
, runtimeShellPackage
88
, runtimeShell
99
, nixosTests
10+
, enablePrivSep ? false
1011
}:
1112

1213
stdenv.mkDerivation rec {
@@ -39,7 +40,8 @@ stdenv.mkDerivation rec {
3940
"--localstatedir=/var"
4041
"--disable-privsep"
4142
"--dbdir=/var/lib/dhcpcd"
42-
];
43+
(lib.enableFeature enablePrivSep "privsep")
44+
] ++ lib.optional enablePrivSep "--privsepuser=dhcpcd";
4345

4446
makeFlags = [ "PREFIX=${placeholder "out"}" ];
4547

0 commit comments

Comments
 (0)