e5917ea6fc
The only conflict was the addition of two different options at the same place. svn path=/nixos/trunk/; revision=28801
41 lines
592 B
Nix
41 lines
592 B
Nix
# Upower daemon.
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
with pkgs.lib;
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
|
|
services.upower = {
|
|
|
|
enable = mkOption {
|
|
default = false;
|
|
description = ''
|
|
Whether to enable Upower, a DBus service that provides power
|
|
management support to applications.
|
|
'';
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf config.services.upower.enable {
|
|
|
|
environment.systemPackages = [ pkgs.upower ];
|
|
|
|
services.dbus.packages = [ pkgs.upower ];
|
|
|
|
services.udev.packages = [ pkgs.upower ];
|
|
|
|
};
|
|
|
|
}
|