fli/eza.nix: init

This commit is contained in:
Charlie Root 2024-09-09 19:51:13 +02:00
commit 204d97da9d
5 changed files with 93 additions and 4 deletions

View file

@ -0,0 +1,25 @@
{
config,
lib,
pkgs,
...
}: let
inherit (config.modules.other.system) username;
inherit (lib) mkIf;
cfg = config.modules.system.programs.eza;
in {
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.eza = {
enable = true;
package = pkgs.eza;
git = true;
icons = true;
enableNushellIntegration = true;
enableBashIntegration = true;
enableFishIntegration = true;
enableZshIntegration = true;
};
};
};
}

View file

@ -1,9 +1,12 @@
_: {
imports = [
./fish.nix
# ./fish.nix
./nh.nix
./starship.nix
# ./starship.nix
./beets.nix
./zellij
./oh-my-posh.nix
./nushell.nix
./eza.nix
];
}

View file

@ -0,0 +1,36 @@
{
config,
lib,
pkgs,
...
}: let
inherit (config.modules.other.system) username;
inherit (lib) mkIf;
cfg = config.modules.system.programs.nushell;
in {
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.nushell = {
enable = true;
package = pkgs.nushell;
settings = {
aliases = {
c = "clear";
cc = "cd ~ && clear";
mv = "mv -iv";
rm = "trash -v";
ls = "eza ";
l = "eza -a ";
la = "eza -lha --git";
lg = "lazygit";
# cd = "z";
v = "nvim";
h = "hx";
k = "kak";
e = "emacs";
};
};
};
};
};
}

View file

@ -0,0 +1,25 @@
{
config,
lib,
pkgs,
...
}: let
inherit (config.modules.other.system) username;
inherit (lib) mkIf;
cfg = config.modules.system.programs.oh-my-posh;
in {
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.oh-my-posh = {
enable = true;
package = pkgs.eza;
enableNushellIntegration = true;
enableBashIntegration = true;
enableFishIntegration = true;
enableZshIntegration = true;
settings = {
};
};
};
};
}

View file

@ -3,10 +3,10 @@
lib,
...
}: let
inherit (config.modules.system.hardware.sound) pipewire;
cfg = config.modules.system.hardware.sound.pipewire;
inherit (lib) mkIf;
in {
config = mkIf pipewire.enable {
config = mkIf cfg.enable {
services.pipewire = {
enable = true;
audio.enable = true;