mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 08:19:42 +00:00
21 lines
405 B
Nix
21 lines
405 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf;
|
|
|
|
deviceType = config.myOptions.device.roles.type;
|
|
acceptedTypes = ["laptop" "desktop"];
|
|
in {
|
|
config = mkIf (builtins.elem deviceType acceptedTypes) {
|
|
services = {
|
|
# enable GVfs - a userspace virtual filesystem
|
|
gvfs.enable = true;
|
|
|
|
# storage daemon required for udiskie auto-mount
|
|
udisks2.enable = true;
|
|
};
|
|
};
|
|
}
|