2017-01-07 19:16:26 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
services.udiskie = {
|
|
|
|
enable = mkEnableOption "Udiskie mount daemon";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf config.services.udiskie.enable {
|
|
|
|
systemd.user.services.udiskie = {
|
|
|
|
Unit = {
|
|
|
|
Description = "Udiskie mount daemon";
|
|
|
|
};
|
|
|
|
|
|
|
|
Service = {
|
|
|
|
ExecStart = "${pkgs.pythonPackages.udiskie}/bin/udiskie -2 -A -n -s";
|
|
|
|
};
|
|
|
|
|
|
|
|
Install = {
|
2017-01-09 22:45:42 +01:00
|
|
|
WantedBy = [ "graphical-session.target" ];
|
2017-01-07 19:16:26 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|