back to building state

This commit is contained in:
Chris Kruining 2025-03-20 16:39:56 +01:00
parent 1eeceb742b
commit ad816fe171
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
14 changed files with 207 additions and 140 deletions

View file

@ -31,6 +31,8 @@ in
fzf.enable = true;
starship.enable = true;
tmux.enable = true;
yazi.enable = true;
eza.enable = true;
};
home-manager.users.${user} = {
@ -41,9 +43,21 @@ in
rgFull = pkgs.ripgrep.override {withPCRE2 = true;};
};
home.shellAliases = {
ls = "eza -a";
cat = "bat -pp";
y = "yazi";
zed = "zeditor .";
};
programs = {
direnv = {
enable = true;
config.global = {
load_dotenv = true;
strict_env = true;
hide_env_diff = true;
};
nix-direnv.enable = true;
config.whitelist.prefix = ["/home"];
};

View file

@ -0,0 +1,26 @@
{ config, options, lib, pkgs, user, ... }:
let
inherit (lib.modules) mkIf;
inherit (lib.strings) concatStringsSep;
inherit (lib.options) mkEnableOption;
cfg = config.modules.${user}.shell.toolset.eza;
in
{
options.modules.${user}.shell.toolset.eza = {
enable = mkEnableOption "system-monitor";
};
config = mkIf cfg.enable {
home-manager.users.${user}.programs.eza = {
enable = true;
icons = "auto";
git = true;
extraOptions = [
"--hyperlink"
"--across"
"--group-directories-first"
];
};
};
}

View file

@ -0,0 +1,18 @@
{ config, options, lib, pkgs, user, ... }:
let
inherit (lib.modules) mkIf;
inherit (lib.strings) concatStringsSep;
in
{
options.modules.${user}.shell.toolset.yazi = let
inherit (lib.options) mkEnableOption;
in {
enable = mkEnableOption "system-monitor";
};
config = mkIf config.modules.${user}.shell.toolset.yazi.enable {
home-manager.users.${user}.programs.yazi = {
enable = true;
};
};
}

View file

@ -34,6 +34,7 @@ in
programs = {
starship.enableZshIntegration = true;
yazi.enableZshIntegration = true;
zsh = {
enable = true;