nixdots/system/roles/workstation/services/mount.nix

21 lines
492 B
Nix
Raw Normal View History

2024-07-26 23:07:07 +00:00
{
lib,
config,
...
}: let
2024-04-13 19:15:25 +00:00
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
# (allows viewing ftp,sftp,... directly from the file manager)
gvfs.enable = true;
2024-04-13 18:10:01 +00:00
2024-04-13 19:15:25 +00:00
# Storage daemon required for udiskie auto-mount
udisks2.enable = !config.boot.isContainer;
};
2024-04-13 18:10:01 +00:00
};
}