02a30bea44
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/)
47 lines
754 B
Nix
47 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 ];
|
|
};
|
|
|
|
}
|