mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-25 06:24:35 +00:00
Add misc services
This commit is contained in:
parent
f5febc9346
commit
e20e63e57b
|
@ -3,6 +3,7 @@
|
|||
./earlyoom.nix
|
||||
./mount.nix
|
||||
./printing.nix
|
||||
./misc.nix
|
||||
];
|
||||
}
|
||||
|
||||
|
|
20
system/roles/workstation/services/misc.nix
Normal file
20
system/roles/workstation/services/misc.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue