fli/eza.nix: init
This commit is contained in:
parent
e4f89f8619
commit
204d97da9d
5 changed files with 93 additions and 4 deletions
25
modules/programs/cli/eza.nix
Normal file
25
modules/programs/cli/eza.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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
|
||||
];
|
||||
}
|
||||
|
|
36
modules/programs/cli/nushell.nix
Normal file
36
modules/programs/cli/nushell.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
25
modules/programs/cli/oh-my-posh.nix
Normal file
25
modules/programs/cli/oh-my-posh.nix
Normal 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 = {
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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;
|
Loading…
Add table
Add a link
Reference in a new issue