mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-14 16:17:17 +00:00
29 lines
608 B
Nix
29 lines
608 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf;
|
|
deviceType = config.myOptions.device.roles.type;
|
|
acceptedTypes = ["laptop" "desktop"];
|
|
in {
|
|
config = mkIf (builtins.elem deviceType acceptedTypes) {
|
|
programs = {
|
|
# allow non-root users to mount fuse filesystems with allow_other
|
|
fuse.userAllowOther = true;
|
|
|
|
# show network usage
|
|
bandwhich.enable = true;
|
|
|
|
# network inspection utility
|
|
wireshark.enable = true;
|
|
|
|
# gnome's keyring manager
|
|
seahorse.enable = true;
|
|
|
|
# registry for linux (thanks to Gnome)
|
|
dconf.enable = true;
|
|
};
|
|
};
|
|
}
|