mirror of
https://github.com/youwen5/liminalOS.git
synced 2025-06-19 13:39:52 -07:00
feat: enable gvfs
This commit is contained in:
parent
d1a4a2e09d
commit
df7f6671f1
1 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue