Add misc services

This commit is contained in:
ItsDrike 2024-06-10 18:54:47 +02:00
parent f5febc9346
commit e20e63e57b
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
2 changed files with 21 additions and 0 deletions

View file

@ -3,6 +3,7 @@
./earlyoom.nix ./earlyoom.nix
./mount.nix ./mount.nix
./printing.nix ./printing.nix
./misc.nix
]; ];
} }

View file

@ -0,0 +1,20 @@
{
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;
};
};
}