7ab616f659
* Let ConsoleKit track the current logins instead of pam_console. Udev now takes care of setting the device permissions to the active user. This works much better, since pam_console wouldn't apply permissions to new (hot-plugged) devices. Also, the udev+ConsoleKit approach supports user switching. (We don't have that for X yet, but it already works for logins on virtual consoles: if you switch between different users on differents VCs with Alt+Fn, the device ownership will be changed automatically.) svn path=/nixos/trunk/; revision=16743
25 lines
448 B
Nix
25 lines
448 B
Nix
{ config, pkgs, ... }:
|
|
|
|
with pkgs.lib;
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
environment.systemPackages = [ pkgs.console_kit ];
|
|
|
|
services.dbus.packages = [ pkgs.console_kit ];
|
|
|
|
environment.etc = singleton
|
|
{ source = (pkgs.buildEnv {
|
|
name = "console-kit-config";
|
|
pathsToLink = [ "/etc/ConsoleKit" ];
|
|
paths = [ pkgs.console_kit pkgs.udev ];
|
|
}) + "/etc/ConsoleKit";
|
|
target = "ConsoleKit";
|
|
};
|
|
|
|
};
|
|
|
|
}
|