mirror of
https://github.com/tboerger/nixos-config
synced 2026-10-26 19:50:26 +01:00
35 lines
415 B
Nix
35 lines
415 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
options,
|
|
...
|
|
}:
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.profile.services.udiskie;
|
|
|
|
in
|
|
{
|
|
options = {
|
|
profile = {
|
|
services = {
|
|
udiskie = {
|
|
enable = mkEnableOption "Udiskie";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services = {
|
|
udiskie = {
|
|
enable = true;
|
|
automount = true;
|
|
notify = true;
|
|
};
|
|
};
|
|
};
|
|
}
|