mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
17 lines
332 B
Nix
17 lines
332 B
Nix
{ lib, config, ... }:
|
|
|
|
with lib;
|
|
let
|
|
gui = config.modules.user.gui.wm;
|
|
wm = {
|
|
enable = builtins.any (mod: mod.enable or false) (builtins.attrValues gui);
|
|
};
|
|
|
|
in
|
|
{
|
|
cd = "cd -L";
|
|
grep = "grep --color";
|
|
tree = "eza --tree --icons=never";
|
|
lt = mkForce "eza --tree --icons=never";
|
|
open = mkIf wm.enable "xdg-open";
|
|
}
|