1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-04 18:29:45 +01:00
home-manager/modules/services/udiskie.nix
Robert Helgesson a9343d8194
udiskie: remove taffybar requirement
It should be sufficient to have a graphical session going.
2017-06-26 16:59:11 +02:00

27 lines
522 B
Nix

{ 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" ];
};
};
};
}