From fb9604b03f3c5d7ca054960f1aeba6f8bdc436d7 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Thu, 20 Mar 2025 13:31:25 -0700 Subject: [PATCH] feat: use rust uutils --- modules/linux/core/default.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/modules/linux/core/default.nix b/modules/linux/core/default.nix index 2dea298..e9db435 100644 --- a/modules/linux/core/default.nix +++ b/modules/linux/core/default.nix @@ -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 {