home-manager/modules/services/udiskie.nix

28 lines
522 B
Nix
Raw Normal View History

2017-01-07 18:16:26 +00: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 = {
WantedBy = [ "graphical-session.target" ];
2017-01-07 18:16:26 +00:00
};
};
};
}