Adds more programs + refactoring

nix-darwin
Abhinav Sarkar 2022-10-15 22:10:18 +05:30
parent 5afbf66d68
commit e6bd498aab
2 changed files with 43 additions and 34 deletions

View File

@ -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()
# choose a just command to run
@ -11,10 +11,10 @@ help:
_run cmd:
#!/usr/bin/env -S sh -eu
if [ "{{ in_nix_shell }}" = "true" ]; then
just "{{ root_dir }}/{{ cmd }}"
else
if [ "{{ in_nix_shell }}" = "false" ]; then
nix-shell "{{ root_dir }}/shell.nix" --run "just \"{{ root_dir }}/{{ cmd }}\""
else
just "{{ root_dir }}/{{ cmd }}"
fi
_build:

View File

@ -1,45 +1,50 @@
{ inputs, config, pkgs, ... }:
{
imports = [ ./fish.nix ./git.nix ./starship.nix ./vscode.nix ];
home.packages = with pkgs; [
bash
broot
cloc
cloudflare-dyndns
comma
let
nixPackages = with pkgs; [
config.nix.package
coreutils-full
curl
ddgr
dig
dua
entr
fd
gitui
graphviz-nox
httpie
jetbrains.idea-community
less
micro
neofetch
niv
nix
nix-diff
nix-du
nixfmt
openssh
proselint
ranger
rnix-lsp
shellcheck
spotify-tui
statix
];
networkingPackages = with pkgs; [
curl
dig
httpie
openssh
];
cmdLineUtilPackages = with pkgs; [
bash
broot
coreutils-full
fd
gnugrep
less
ranger
tealdeer
thefuck
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
inconsolata
jetbrains-mono
@ -49,6 +54,10 @@
(pkgs.callPackage ../packages/dm-mono.nix { dm-mono-src = "${inputs.dm-mono-font}"; })
(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 = {
enable = true;