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, pkgs,
config, config,
lib, lib,
@ -53,20 +52,29 @@ in
Whether to enable bluetooth and blueman. 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 { config = lib.mkIf cfg.enable {
environment.systemPackages = environment.systemPackages =
with pkgs; (with pkgs; [
[
wget wget
git git
curl curl
] ])
++ [ ++ [
config.liminalOS.defaultEditor 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 # tells electron apps to use Wayland
environment.sessionVariables = lib.mkIf cfg.waylandFixes { environment.sessionVariables = lib.mkIf cfg.waylandFixes {