feat: enable gvfs

This commit is contained in:
Youwen Wu 2025-06-01 22:02:03 -07:00
parent d1a4a2e09d
commit df7f6671f1
Signed by: youwen
GPG key ID: 865658ED1FE61EC3

View file

@ -47,18 +47,25 @@ in
suppressWarnings = lib.mkEnableOption "suppress warnings";
bluetooth.enable = lib.mkOption {
type = lib.types.bool;
default = true;
default = cfg.enable;
description = ''
Whether to enable bluetooth and blueman.
'';
};
uutils.enable = lib.mkOption {
type = lib.types.bool;
default = true;
default = cfg.enable;
description = ''
Whether to replace GNU coreutils with Rust uutils
'';
};
useGvfs.enable = lib.mkOption {
type = lib.types.bool;
default = cfg.enable;
description = ''
Whether to enable the GVFS and alias `rm` to send files to trash instead.
'';
};
};
config = lib.mkIf cfg.enable {
@ -176,6 +183,8 @@ in
services.blueman.enable = lib.mkIf cfg.bluetooth.enable true;
services.gvfs.enable = lib.mkIf cfg.useGvfs.enable true;
warnings =
if !cfg.suppressWarnings && cfg.useNh && config.liminalOS.flakeLocation == "" then
[