Split config up into pieces

This commit is contained in:
Leonora Tindall 2025-07-03 10:29:55 -05:00
parent 66f1248646
commit 38c5422abb
18 changed files with 168 additions and 123 deletions

8
clipboard-utils.nix Normal file
View File

@ -0,0 +1,8 @@
{ config, pkgs, ...}:
{
home.packages = with pkgs; [
xsel
xclip
wl-clipboard
];
}

7
communications-gui.nix Normal file
View File

@ -0,0 +1,7 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs; [
discord
quasselClient
];
}

29
console.nix Normal file
View File

@ -0,0 +1,29 @@
{ config, pkgs, ... }:
{
# many of these packages come from "mort.io/blog/nu-posix"
home.packages = with pkgs; [
bat # better cat
htop # better top, but old
bottom # btm ~ better top, htop, etc
broot # interactive directory navigation
chafa # terminal graphics viewer
ctpv # terminal file previewer
cyme # better `lsusb`
delta # better syntax highlighting diff
dfc # better df
dua # disk usage, interactively
eza # improved `ls`
fd # `find` replacement
fend # better CLI calculator
hexyl # hex pretty printer
htop # graphical top
iotop # io top
jujutsu # better git
just # updated gnumake replacement
procs # better ps
ripgrep # rg ~ `grep` replacement
timg # display images in the terminal
viddy # better watch
uutils-coreutils-noprefix # replaces GNU `coreutils`
];
}

7
development.nix Normal file
View File

@ -0,0 +1,7 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs; [
exercism
act
];
}

6
go.nix Normal file
View File

@ -0,0 +1,6 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs; [
go
];
}

View File

@ -1,23 +1,45 @@
{ config, pkgs, lib, ... }:
let inherit (lib) hm;
let
inherit (lib) hm;
nixGL = import ./nixGL.nix { inherit pkgs config; };
in
{
imports = [
./vim.nix
./git.nix
./zsh.nix
./atuin.nix
./starship.nix
./ssh.nix
./eza.nix
./jq.nix
./tmux.nix
./console.nix
./development.nix
./direnv.nix
./syncthing.nix
./eza.nix
./fzf.nix
./git.nix
./go.nix
./hare.nix
./javascript.nix
./jj.nix
./jq.nix
./nix-utils.nix
./pandoc.nix
./python.nix
./ssh.nix
./starship.nix
./syncthing.nix
./tmux.nix
./vanity.nix
./vim.nix
./web.nix
./zellij.nix
./packages.nix
./zsh.nix
./privacy-gui.nix
./communications-gui.nix
];
home.packages = with pkgs; [
(nixGL firefox)
(nixGL anki)
(nixGL digikam)
(nixGL zotero)
(nixGL decker)
];
# Home Manager is pretty good at managing dotfiles. The primary way to manage

7
javascript.nix Normal file
View File

@ -0,0 +1,7 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs; [
deno
nodejs
];
}

7
nix-utils.nix Normal file
View File

@ -0,0 +1,7 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs; [
nix-output-monitor
npins
];
}

View File

@ -1,52 +0,0 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs; [
tor-browser
htop
wget
monolith
freshfetch
neofetch
dfc
yt-dlp
(pkgs.callPackage ./custom/fortune-kind-custom.nix {})
timg
graphviz
nix-output-monitor
npins
uv
exercism
pandoc
act
go
xsel
xclip
wl-clipboard
neocities
deno
decker
# from "mort.io/blog/nu-posix"
bat # better cat
bottom # btm ~ better top, htop, etc
broot # interactive directory navigation
chafa # terminal graphics viewer
ctpv # terminal file previewer
cyme # better `lsusb`
delta # better syntax highlighting diff
dua # disk usage, interactively
eza # improved `ls`
fd # `find` replacement
fend # better CLI calculator
hexyl # hex pretty printer
htop # graphical top
iotop # io top
jujutsu # better git
just # updated gnumake replacement
procs # better ps
ripgrep # rg ~ `grep` replacement
uutils-coreutils-noprefix # replaces GNU `coreutils`
viddy # better watch
];
}

View File

@ -1,49 +0,0 @@
{ config, pkgs, ... }:
let
nixGL = import ./nixGL.nix { inherit pkgs config; };
nixos_23_11 = builtins.fetchTarball {
name = "nixos-23.11-2024-03-29";
url = "https://github.com/nixos/nixpkgs/archive/219951b495fc2eac67b1456824cc1ec1fd2ee659.tar.gz";
sha256 = "065jy7qivlbdqmbvd7r9h97b23f21axmc4r7sqmq2h0j82rmymxv";
};
stable = (import nixos_23_11) {
config.allowUnfree = true;
config.permittedInsecurePackages = [
"electron-25.9.0"
];
};
in
{
home.packages = with pkgs; [
mullvad-vpn
tor-browser
opensnitch-ui
htop
ollama
wget
(nixGL firefox)
ripgrep
bat
monolith
fd
quasselClient
discord
freshfetch
neofetch
dfc
(nixGL anki)
(nixGL digikam)
deno
stable.nodejs_21
yt-dlp
(pkgs.callPackage ./custom/fortune-kind-custom.nix {})
fend
timg
graphviz
(nixGL zotero)
nix-output-monitor
npins
odin
decker
];
}

6
pandoc.nix Normal file
View File

@ -0,0 +1,6 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs; [
pandoc
];
}

7
privacy-gui.nix Normal file
View File

@ -0,0 +1,7 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs; [
mullvad-vpn
tor-browser
];
}

6
python.nix Normal file
View File

@ -0,0 +1,6 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs; [
uv
];
}

View File

@ -3,22 +3,31 @@ let inherit (lib) hm;
in
{
imports = [
./vim.nix
./git.nix
./zsh.nix
./atuin.nix
./starship.nix
./ssh.nix
./eza.nix
./jq.nix
./console.nix
./development.nix
./direnv.nix
./syncthing.nix
./eza.nix
./fzf.nix
./zellij.nix
./jj.nix
./git.nix
./go.nix
./hare.nix
./javascript.nix
./jj.nix
./jq.nix
./nix-utils.nix
./ollama.nix
./packages-min.nix
./pandoc.nix
./python.nix
./ssh.nix
./starship.nix
./syncthing.nix
./tmux.nix
./vanity.nix
./vim.nix
./web.nix
./zellij.nix
./zsh.nix
];
# Home Manager is pretty good at managing dotfiles. The primary way to manage

7
vanity.nix Normal file
View File

@ -0,0 +1,7 @@
{ config, pkgs, ...}:
{
home.packages = with pkgs; [
freshfetch
neofetch
];
}

10
web.nix Normal file
View File

@ -0,0 +1,10 @@
{ config, pkgs, ...}:
{
home.packages = with pkgs; [
curl
wget
monolith
yt-dlp
neocities
];
}

View File

@ -1,5 +1,9 @@
{ config, pkgs, ... }:
{
imports = [
./clipboard-utils.nix
];
home.sessionVariables = {
ZELLIJ_AUTO_EXIT = "false";
};

View File

@ -12,4 +12,8 @@
enableVteIntegration = true;
initContent = (builtins.readFile ./rcfiles/zshrc);
};
home.packages = [
(pkgs.callPackage ./custom/fortune-kind-custom.nix {})
];
}