nixpkgs/nixos/modules/services/hardware/udisks.nix
Moritz Ulrich 02a30bea44 Fix services.udisks.enable.
Latest update to udisks in 344f2e65 broke it for me. Fix it by doing the
following:

- Add udisks.service to /etc/systemd/system (via systemd.packages)
- Fix path to udisks-daemon in udisks.service (libexec/ instead of lib/)
2014-03-25 16:52:45 +01:00

48 lines
754 B
Nix

# Udisks daemon.
{ config, pkgs, ... }:
with pkgs.lib;
{
###### interface
options = {
services.udisks = {
enable = mkOption {
type = types.bool;
default = false;
description = ''
Whether to enable 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 ];
system.activationScripts.udisks =
''
mkdir -m 0755 -p /var/lib/udisks
'';
services.udev.packages = [ pkgs.udisks ];
systemd.packages = [ pkgs.udisks ];
};
}