diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-08-21 08:33:10 -0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-08-21 08:42:44 -0400 |
commit | 6121046a1c5dbea7703521f9dc816abf47eab943 (patch) | |
tree | a62be1128477ced325d82c6424442489731db963 /pkgs/os-specific/linux/systemd | |
parent | 1dadeaeb18944d81c05c4afe49c99efa9ae3c496 (diff) | |
download | nixlib-6121046a1c5dbea7703521f9dc816abf47eab943.tar nixlib-6121046a1c5dbea7703521f9dc816abf47eab943.tar.gz nixlib-6121046a1c5dbea7703521f9dc816abf47eab943.tar.bz2 nixlib-6121046a1c5dbea7703521f9dc816abf47eab943.tar.lz nixlib-6121046a1c5dbea7703521f9dc816abf47eab943.tar.xz nixlib-6121046a1c5dbea7703521f9dc816abf47eab943.tar.zst nixlib-6121046a1c5dbea7703521f9dc816abf47eab943.zip |
systemd: Set the path to pkttyagent
This allows commands like "systemctl reboot" to ask for authentication when run by mere mortals.
Diffstat (limited to 'pkgs/os-specific/linux/systemd')
-rw-r--r-- | pkgs/os-specific/linux/systemd/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix index 4cda7191e4a2..e6e5822c9eac 100644 --- a/pkgs/os-specific/linux/systemd/default.nix +++ b/pkgs/os-specific/linux/systemd/default.nix @@ -49,7 +49,14 @@ stdenv.mkDerivation rec { done ''; - NIX_CFLAGS_COMPILE = "-DKBD_LOADKEYS=\"${kbd}/bin/loadkeys\" -DKBD_SETFONT=\"${kbd}/bin/setfont\" -fno-stack-protector"; + NIX_CFLAGS_COMPILE = + [ "-DKBD_LOADKEYS=\"${kbd}/bin/loadkeys\"" + "-DKBD_SETFONT=\"${kbd}/bin/setfont\"" + # Can't say ${polkit}/bin/pkttyagent here because that would + # lead to a cyclic dependency. + "-DPOLKIT_AGENT_BINARY_PATH=\"/run/current-system/sw/bin/pkttyagent\"" + "-fno-stack-protector" + ]; makeFlags = "CPPFLAGS=-I${stdenv.gcc.libc}/include"; |