feat: use rust uutils

This commit is contained in:
Youwen Wu 2025-03-20 13:31:25 -07:00
parent db10d9b4ff
commit fb9604b03f
Signed by: youwen
GPG key ID: 865658ED1FE61EC3

View file

@ -1,5 +1,4 @@
{
inputs,
pkgs,
config,
lib,
@ -53,20 +52,29 @@ in
Whether to enable bluetooth and blueman.
'';
};
uutils.enable = lib.mkOption {
type = lib.types.bool;
default = true;
description = ''
Whether to replace GNU coreutils with Rust uutils
'';
};
};
config = lib.mkIf cfg.enable {
environment.systemPackages =
with pkgs;
[
(with pkgs; [
wget
git
curl
]
])
++ [
config.liminalOS.defaultEditor
]
++ lib.optionals cfg.replaceSudoWithDoas [ doas-sudo-shim ];
++ lib.optionals cfg.replaceSudoWithDoas [ pkgs.doas-sudo-shim ]
++ lib.optionals cfg.uutils.enable [
(lib.hiPrio pkgs.uutils-coreutils-noprefix)
];
# tells electron apps to use Wayland
environment.sessionVariables = lib.mkIf cfg.waylandFixes {