Compare commits
2 Commits
93e58c341d
...
fe24eb2dde
| Author | SHA1 | Date | |
|---|---|---|---|
| fe24eb2dde | |||
| e9d585f8d0 |
@@ -11,9 +11,6 @@
|
|||||||
imports = with inputs.self.modules.homeManager; [
|
imports = with inputs.self.modules.homeManager; [
|
||||||
bash
|
bash
|
||||||
zsh
|
zsh
|
||||||
|
|
||||||
# Tools
|
|
||||||
eza
|
|
||||||
files
|
files
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -21,21 +18,40 @@
|
|||||||
home.shell.enableShellIntegration = true;
|
home.shell.enableShellIntegration = true;
|
||||||
programs.zsh.enable = lib.mkForce (config.shell.program == "zsh");
|
programs.zsh.enable = lib.mkForce (config.shell.program == "zsh");
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
nh
|
|
||||||
nvd
|
|
||||||
nix-output-monitor
|
|
||||||
wget
|
|
||||||
curl
|
|
||||||
busybox
|
|
||||||
gnugrep
|
|
||||||
dig
|
|
||||||
btop
|
btop
|
||||||
uv
|
uv
|
||||||
xclip
|
xclip
|
||||||
jq
|
inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.shell-tools
|
||||||
ripgrep
|
|
||||||
(writeShellScriptBin "ds" ''${lib.getExe pkgs.gdu} -x -I /snap /'')
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
perSystem = { system, pkgs, self', ... }: {
|
||||||
|
packages.shell-tools = inputs.wrappers.lib.wrapPackage {
|
||||||
|
inherit pkgs;
|
||||||
|
package = (pkgs.symlinkJoin {
|
||||||
|
name = "shell-tools";
|
||||||
|
paths = with pkgs; [
|
||||||
|
nh
|
||||||
|
ripgrep
|
||||||
|
fd
|
||||||
|
jq
|
||||||
|
wget
|
||||||
|
curl
|
||||||
|
dig
|
||||||
|
self'.packages.gdu
|
||||||
|
self'.packages.my-eza
|
||||||
|
hostname
|
||||||
|
iproute2
|
||||||
|
direnv
|
||||||
|
];
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
packages.gdu = inputs.wrappers.lib.wrapPackage {
|
||||||
|
inherit pkgs;
|
||||||
|
package = pkgs.gdu;
|
||||||
|
args = [ "-x" "--si" "--collapse-path" "--mouse" "$@" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,10 +36,6 @@
|
|||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
wget
|
|
||||||
cacert
|
|
||||||
busybox
|
|
||||||
dig
|
|
||||||
samba
|
samba
|
||||||
selfPkgs.my-neovim
|
selfPkgs.my-neovim
|
||||||
selfPkgs.wg-platform
|
selfPkgs.wg-platform
|
||||||
|
|||||||
@@ -14,12 +14,5 @@
|
|||||||
ignorecase = true;
|
ignorecase = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
# gdu
|
|
||||||
# (writeShellScriptBin "lfcd" ''
|
|
||||||
# . <(${lib.getExe pkgs.lf} -print-last-dir | sed 's/^/cd /')
|
|
||||||
# '')
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
+11
-28
@@ -108,46 +108,29 @@ in
|
|||||||
|
|
||||||
HOSTNAME=$(hostname -s)
|
HOSTNAME=$(hostname -s)
|
||||||
|
|
||||||
${aliasStr}
|
|
||||||
|
|
||||||
eval "$(direnv hook zsh)"
|
eval "$(direnv hook zsh)"
|
||||||
|
|
||||||
|
${aliasStr}
|
||||||
'';
|
'';
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
self'.packages.my-eza
|
|
||||||
self'.packages.gdu
|
|
||||||
busybox
|
|
||||||
fd
|
|
||||||
ripgrep
|
|
||||||
hostname
|
|
||||||
iproute2
|
|
||||||
direnv
|
|
||||||
lazydocker
|
lazydocker
|
||||||
nh
|
self'.packages.shell-tools
|
||||||
];
|
];
|
||||||
}).wrapper;
|
}).wrapper;
|
||||||
|
|
||||||
packages.starship = (inputs.wrappers.wrapperModules.starship.apply {
|
packages.starship = (inputs.wrappers.wrapperModules.starship.apply {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
settings = lib.mkMerge [
|
settings = lib.recursiveUpdate (lib.importTOML (pkgs.fetchurl {
|
||||||
(lib.importTOML (pkgs.fetchurl {
|
|
||||||
url = https://starship.rs/presets/toml/catppuccin-powerline.toml;
|
url = https://starship.rs/presets/toml/catppuccin-powerline.toml;
|
||||||
sha256 = "0bd8zx0bpri63rnb9dva0rav75d3i2wrzw44h63m75hq5220r26g";
|
sha256 = "0bd8zx0bpri63rnb9dva0rav75d3i2wrzw44h63m75hq5220r26g";
|
||||||
}))
|
})) {
|
||||||
{
|
|
||||||
palette = "catppuccin_mocha";
|
palette = "catppuccin_mocha";
|
||||||
add_newline = lib.mkForce true;
|
add_newline = true;
|
||||||
line_break.disabled = lib.mkForce false;
|
line_break.disabled = false;
|
||||||
git_status.diverged = lib.mkForce "⇕⇡\${ahead_count}⇣\${behind_count}";
|
git_status.diverged = "⇕⇡\${ahead_count}⇣\${behind_count}";
|
||||||
cmd_duration.format = lib.mkForce " $duration";
|
cmd_duration.format = " $duration";
|
||||||
python.disabled = lib.mkForce true;
|
# python.disabled = true;
|
||||||
}
|
};
|
||||||
];
|
|
||||||
}).wrapper;
|
}).wrapper;
|
||||||
|
|
||||||
packages.gdu = inputs.wrappers.lib.wrapPackage {
|
|
||||||
inherit pkgs;
|
|
||||||
package = pkgs.gdu;
|
|
||||||
args = [ "-x" "--si" "--collapse-path" "--mouse" "$@" ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user