Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ CI runs `nix flake check --all-systems` then builds the `erik@darter` home confi

The flake uses `flake-parts` with these categorical module directories imported as `flake.modules.flake`:

- `ai/` — claude-code, github-copilot-cli, cursor-cli (shared by both users)
- `browsers/` — Brave
- `desktops/` — GNOME
- `editors/` — VS Code (with profiles per host), Neovim (via nixvim), Zed, Helix, Emacs
- `shells/` — Zsh (Prezto + Powerlevel10k)
- `gnupg/` — gpg + gpg-agent (shared by both users; pinentry only on Linux)
- `shells/` — Zsh (Prezto, or oh-my-zsh as an alt via `dotfiles.zsh.ohMyZsh.enable`; Powerlevel10k)
- `terminals/` — Kitty, Ghostty
- `toolchain/` — per-language dev tool configs: c, containers, dotnet, git, go, javascript, kubernetes (with k9s and openshift submodules), nix, ocaml, python
- `users/erik/` — Linux (x86_64) home config; includes `ai.nix` (enables claude-code, github-copilot-cli, cursor-cli)
- `users/erik/` — Linux (x86_64) home config
- `users/erasmussen/` — macOS (aarch64-darwin) home config

Three home configurations are defined: `erik@darter` and `erik@hades` (both x86_64-linux), and `erasmussen@Eriks-MacBook-Pro.local` (aarch64-darwin).
Expand Down
1 change: 1 addition & 0 deletions users/erik/ai.nix → ai/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
}:
{
options.dotfiles.ai.enable = lib.mkEnableOption "Slop";

config = lib.mkIf config.dotfiles.ai.enable {
programs.claude-code.enable = true;
home.packages = with pkgs; [
Expand Down
4 changes: 2 additions & 2 deletions users/erik/gnupg.nix → gnupg/default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
programs.gpg.enable = true;
services.gpg-agent = {
enable = true;
enableSshSupport = true;
enableZshIntegration = true;
pinentry = {
pinentry = lib.mkIf pkgs.stdenv.isLinux {
package = pkgs.pinentry-all;
program = "pinentry-gnome3";
};
Expand Down
5 changes: 4 additions & 1 deletion shells/zsh/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
...
}:
{
imports = [ ./prezto ];
imports = [
./prezto
./oh-my-zsh
];
Comment on lines +8 to +11

options.dotfiles.zsh.enable = lib.mkEnableOption "zsh";

Expand Down
8 changes: 5 additions & 3 deletions shells/zsh/oh-my-zsh/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{ lib, config, ... }:
{
programs.zsh = {
enable = true;
oh-my-zsh = {
options.dotfiles.zsh.ohMyZsh.enable = lib.mkEnableOption "oh-my-zsh (alt to prezto)";

config = lib.mkIf config.dotfiles.zsh.ohMyZsh.enable {
programs.zsh.oh-my-zsh = {
enable = true;
plugins = [
"sudo"
Expand Down
103 changes: 56 additions & 47 deletions toolchain/git/default.nix
Original file line number Diff line number Diff line change
@@ -1,59 +1,68 @@
{ pkgs, ... }:
{
programs.git = {
enable = true;
package = pkgs.git;
lfs.enable = true;

settings = {
core = {
editor = "nvim";
};
pkgs,
lib,
config,
...
}:
{
options.dotfiles.git.enable = lib.mkEnableOption "git Toolchain";

user = {
name = "UnstoppableMango";
email = "erik.rasmussen@unmango.dev";
};
config = lib.mkIf config.dotfiles.git.enable {
programs.git = {
enable = true;
package = pkgs.git;
lfs.enable = true;

commit = {
gpgsign = true;
};
settings = {
core = {
editor = "nvim";
};

tag = {
# I think gpgsign=true is what was forcing annotated tags
gpgsign = false;
};
user = {
name = "UnstoppableMango";
email = "erik.rasmussen@unmango.dev";
};
Comment on lines +21 to +24

commit = {
gpgsign = true;
};

alias = {
co = "checkout";
ff = "merge --ff-only";
last = "log -1 HEAD";
unstage = "reset HEAD --";
tag = {
# I think gpgsign=true is what was forcing annotated tags
gpgsign = false;
};

alias = {
co = "checkout";
ff = "merge --ff-only";
last = "log -1 HEAD";
unstage = "reset HEAD --";
};

push.autoSetupRemote = true;
};

push.autoSetupRemote = true;
ignores = [
"**/node_modules/"
".DS_Store"
".direnv/"
".envrc"
".idea/**/discord.xml"
".worktree/"
];
};

ignores = [
"**/node_modules/"
".DS_Store"
".direnv/"
".envrc"
".idea/**/discord.xml"
".worktree/"
];
};
# Still fiddling with these
# https://github.com/git/git/blob/master/contrib/diff-highlight/README
programs.diff-highlight = {
enable = true;
enableGitIntegration = true;
};
# https://github.com/so-fancy/diff-so-fancy
# programs.diff-so-fancy.enable = true;
# https://github.com/Wilfred/difftastic
# programs.difftastic.enable = true;

# Still fiddling with these
# https://github.com/git/git/blob/master/contrib/diff-highlight/README
programs.diff-highlight = {
enable = true;
enableGitIntegration = true;
programs.gh.enable = true;
};
# https://github.com/so-fancy/diff-so-fancy
# programs.diff-so-fancy.enable = true;
# https://github.com/Wilfred/difftastic
# programs.difftastic.enable = true;

programs.gh.enable = true;
}
23 changes: 16 additions & 7 deletions toolchain/nix/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
nil
nixd
nix-init
nurl
];
pkgs,
lib,
config,
...
}:
{
options.dotfiles.nix.enable = lib.mkEnableOption "nix Toolchain";

config = lib.mkIf config.dotfiles.nix.enable {
home.packages = with pkgs; [
nil
nixd
nix-init
nurl
];
};
}
13 changes: 6 additions & 7 deletions users/erasmussen/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ let
in
{
imports = [
../../shells/zsh
../../ai
../../editors
../../gnupg
../../shells/zsh
../../terminals
../../toolchain

./gnupg.nix
];

home = {
Expand All @@ -24,9 +24,7 @@ in
bat
buf
crane
cursor-cli
fnm
github-copilot-cli
gitkraken
glow
pay-respects
Expand All @@ -37,6 +35,7 @@ in
};

dotfiles = {
ai.enable = true;
neovim.enable = true;
vscode.enable = true;
zsh.enable = true;
Expand All @@ -47,9 +46,11 @@ in
containers.enable = true;
containers.podmanAutostart = true;
dotnet.enable = true;
git.enable = true;
go.enable = true;
javascript.enable = true;
kubernetes.enable = true;
nix.enable = true;
openshift.enable = false;
ocaml.enable = true;
python.enable = true;
Expand Down Expand Up @@ -84,8 +85,6 @@ in
# enableZshIntegration = true;
# enableKittyIntegration = config.dotfiles.kitty.enable;
# };

claude-code.enable = true;
};

programs.git = {
Expand Down
8 changes: 0 additions & 8 deletions users/erasmussen/gnupg.nix

This file was deleted.

8 changes: 5 additions & 3 deletions users/erik/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ let
in
{
imports = [
../../ai
../../browsers
../../desktops
../../editors
../../gnupg
../../shells
../../terminals
../../toolchain

./ai.nix
./gnupg.nix
];

home = {
Expand All @@ -32,13 +31,16 @@ in
};

dotfiles = {
ai.enable = true;
emacs.enable = true;
neovim.enable = true;
zsh.enable = true;
c.enable = true;
git.enable = true;
go.enable = true;
javascript.enable = true;
kubernetes.enable = true;
nix.enable = true;
python.enable = true;
};

Expand Down
Loading