mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 16:45:51 +03:00
* NixOS module for Udisks.
svn path=/nixos/trunk/; revision=27909
This commit is contained in:
parent
3a1b6266e4
commit
83846d8417
@ -62,6 +62,7 @@
|
||||
./services/hardware/acpid.nix
|
||||
./services/hardware/bluetooth.nix
|
||||
./services/hardware/hal.nix
|
||||
./services/hardware/udisks.nix
|
||||
./services/hardware/pcscd.nix
|
||||
./services/hardware/udev.nix
|
||||
./services/logging/klogd.nix
|
||||
|
38
modules/services/hardware/udisks.nix
Normal file
38
modules/services/hardware/udisks.nix
Normal file
@ -0,0 +1,38 @@
|
||||
# Udisks daemon.
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
with pkgs.lib;
|
||||
|
||||
{
|
||||
|
||||
###### interface
|
||||
|
||||
options = {
|
||||
|
||||
services.udisks = {
|
||||
|
||||
enable = mkOption {
|
||||
default = false;
|
||||
description = ''
|
||||
Whether to enable support for Udisks, a DBus service that
|
||||
allows applications to query and manipulate storage devices.
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
###### implementation
|
||||
|
||||
config = mkIf config.services.udisks.enable {
|
||||
|
||||
environment.systemPackages = [ pkgs.udisks ];
|
||||
|
||||
services.dbus.packages = [ pkgs.udisks ];
|
||||
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user