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"; suppressWarnings = lib.mkEnableOption "suppress warnings";
bluetooth.enable = lib.mkOption { bluetooth.enable = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
default = true; default = cfg.enable;
description = '' description = ''
Whether to enable bluetooth and blueman. Whether to enable bluetooth and blueman.
''; '';
}; };
uutils.enable = lib.mkOption { uutils.enable = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
default = true; default = cfg.enable;
description = '' description = ''
Whether to replace GNU coreutils with Rust uutils 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 { config = lib.mkIf cfg.enable {
@ -176,6 +183,8 @@ in
services.blueman.enable = lib.mkIf cfg.bluetooth.enable true; services.blueman.enable = lib.mkIf cfg.bluetooth.enable true;
services.gvfs.enable = lib.mkIf cfg.useGvfs.enable true;
warnings = warnings =
if !cfg.suppressWarnings && cfg.useNh && config.liminalOS.flakeLocation == "" then if !cfg.suppressWarnings && cfg.useNh && config.liminalOS.flakeLocation == "" then
[ [