Adds more programs + refactoring
parent
5afbf66d68
commit
e6bd498aab
8
justfile
8
justfile
|
@ -1,4 +1,4 @@
|
||||||
in_nix_shell := if env_var_or_default("IN_NIX_SHELL", "false") == "false" { "false" } else { "true" }
|
in_nix_shell := env_var_or_default("IN_NIX_SHELL", "false")
|
||||||
root_dir := justfile_directory()
|
root_dir := justfile_directory()
|
||||||
|
|
||||||
# choose a just command to run
|
# choose a just command to run
|
||||||
|
@ -11,10 +11,10 @@ help:
|
||||||
|
|
||||||
_run cmd:
|
_run cmd:
|
||||||
#!/usr/bin/env -S sh -eu
|
#!/usr/bin/env -S sh -eu
|
||||||
if [ "{{ in_nix_shell }}" = "true" ]; then
|
if [ "{{ in_nix_shell }}" = "false" ]; then
|
||||||
just "{{ root_dir }}/{{ cmd }}"
|
|
||||||
else
|
|
||||||
nix-shell "{{ root_dir }}/shell.nix" --run "just \"{{ root_dir }}/{{ cmd }}\""
|
nix-shell "{{ root_dir }}/shell.nix" --run "just \"{{ root_dir }}/{{ cmd }}\""
|
||||||
|
else
|
||||||
|
just "{{ root_dir }}/{{ cmd }}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_build:
|
_build:
|
||||||
|
|
|
@ -1,45 +1,50 @@
|
||||||
{ inputs, config, pkgs, ... }:
|
{ inputs, config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
imports = [ ./fish.nix ./git.nix ./starship.nix ./vscode.nix ];
|
nixPackages = with pkgs; [
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
bash
|
|
||||||
broot
|
|
||||||
cloc
|
|
||||||
cloudflare-dyndns
|
|
||||||
comma
|
|
||||||
config.nix.package
|
config.nix.package
|
||||||
coreutils-full
|
|
||||||
curl
|
|
||||||
ddgr
|
|
||||||
dig
|
|
||||||
dua
|
|
||||||
entr
|
|
||||||
fd
|
|
||||||
gitui
|
|
||||||
graphviz-nox
|
|
||||||
httpie
|
|
||||||
jetbrains.idea-community
|
|
||||||
less
|
|
||||||
micro
|
|
||||||
neofetch
|
|
||||||
niv
|
niv
|
||||||
nix
|
nix
|
||||||
nix-diff
|
nix-diff
|
||||||
|
nix-du
|
||||||
nixfmt
|
nixfmt
|
||||||
openssh
|
|
||||||
proselint
|
|
||||||
ranger
|
|
||||||
rnix-lsp
|
rnix-lsp
|
||||||
shellcheck
|
|
||||||
spotify-tui
|
|
||||||
statix
|
statix
|
||||||
|
];
|
||||||
|
networkingPackages = with pkgs; [
|
||||||
|
curl
|
||||||
|
dig
|
||||||
|
httpie
|
||||||
|
openssh
|
||||||
|
];
|
||||||
|
cmdLineUtilPackages = with pkgs; [
|
||||||
|
bash
|
||||||
|
broot
|
||||||
|
coreutils-full
|
||||||
|
fd
|
||||||
|
gnugrep
|
||||||
|
less
|
||||||
|
ranger
|
||||||
tealdeer
|
tealdeer
|
||||||
thefuck
|
thefuck
|
||||||
tree
|
tree
|
||||||
|
];
|
||||||
# fonts
|
miscPackages = with pkgs; [
|
||||||
|
cloc
|
||||||
|
comma
|
||||||
|
ddgr
|
||||||
|
dua
|
||||||
|
entr
|
||||||
|
gitui
|
||||||
|
graphviz-nox
|
||||||
|
jetbrains.idea-community
|
||||||
|
micro
|
||||||
|
neofetch
|
||||||
|
proselint
|
||||||
|
shellcheck
|
||||||
|
spotify-tui
|
||||||
|
];
|
||||||
|
fonts = with pkgs; [
|
||||||
fira-mono
|
fira-mono
|
||||||
inconsolata
|
inconsolata
|
||||||
jetbrains-mono
|
jetbrains-mono
|
||||||
|
@ -49,6 +54,10 @@
|
||||||
(pkgs.callPackage ../packages/dm-mono.nix { dm-mono-src = "${inputs.dm-mono-font}"; })
|
(pkgs.callPackage ../packages/dm-mono.nix { dm-mono-src = "${inputs.dm-mono-font}"; })
|
||||||
(nerdfonts.override { fonts = [ "Monoid" "Agave" "Iosevka" "Lekton" "VictorMono" ]; })
|
(nerdfonts.override { fonts = [ "Monoid" "Agave" "Iosevka" "Lekton" "VictorMono" ]; })
|
||||||
];
|
];
|
||||||
|
in {
|
||||||
|
imports = [ ./fish.nix ./git.nix ./starship.nix ./vscode.nix ];
|
||||||
|
|
||||||
|
home.packages = nixPackages ++ networkingPackages ++ cmdLineUtilPackages ++ miscPackages ++ fonts;
|
||||||
|
|
||||||
programs.htop = {
|
programs.htop = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in New Issue