1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-18 00:59:44 +01:00
home-manager/modules/services/udiskie.nix
2017-06-26 18:42:27 +02:00

29 lines
627 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";
After = [ "graphical-session-pre.target" ];
PartOf = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.pythonPackages.udiskie}/bin/udiskie -2 -A -n -s";
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
};
}