mirror of
https://github.com/youwen5/liminalOS.git
synced 2025-06-20 05:59:51 -07:00
feat: use rust uutils
This commit is contained in:
parent
db10d9b4ff
commit
fb9604b03f
1 changed files with 13 additions and 5 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue