2025-10-05 16:28:31 -04:00
{
config ,
lib ,
. . .
} :
{
imports = [ ] ;
options . me = {
uutils . enable = lib . mkOption {
type = lib . types . bool ;
default = false ;
example = true ;
description = " W h e t h e r w e w a n t t o r e p l a c e G N U c o r e u t i l s w i t h u u t i l s ( a r u s t d r o p - i n r e p l a c e m e n t ) . " ;
} ;
} ;
2025-10-11 00:08:02 -04:00
config = lib . mkIf config . me . uutils . enable {
# environment.corePackages automatically installes coreutils-full, so merely installing uutils-coreutils-noprefix is insufficient for replacing GNU coreutils.
nixpkgs . overlays = [
( final : prev : {
coreutils = final . uutils-coreutils-noprefix ;
coreutils-full = final . uutils-coreutils-noprefix ;
} )
] ;
} ;
2025-10-05 16:28:31 -04:00
}