mirror of
https://github.com/nix-community/home-manager
synced 2024-11-04 18:29:45 +01:00
a9343d8194
It should be sufficient to have a graphical session going.
27 lines
522 B
Nix
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" ];
|
|
};
|
|
};
|
|
};
|
|
}
|