Caesium refactors flake

This commit is contained in:
Matthew Bessette
2026-07-27 23:52:28 -04:00
parent cadf6dd263
commit ace6b0932f
6 changed files with 244 additions and 261 deletions
+17 -39
View File
@@ -7,12 +7,25 @@
home.packages = with pkgs; [];
programs.home-manager.enable = true;
# Enable direnv for automatic environment switching
programs.direnv = {
enable = true;
nix-direnv.enable = true; # Better Nix flakes integration with caching
home.packages = with pkgs; [
claude-desktop
firefox
wowup-cf
faugus-launcher
ghostty
];
services.flatpak = {
packages = [
com.spotify.Client
com.discordapp.Discord
];
overrides = [];
};
# Managed VS Code Extensions (The "Clean" Way)
programs.vscode = {
enable = true;
@@ -21,18 +34,6 @@
userSettings = builtins.fromJSON (builtins.readFile ./config.vscode.settings.json);
extensions = with inputs.nix-vscode-extensions.extensions.${pkgs.system}.vscode-marketplace; [
bbenoist.nix
eamodio.gitlens
github.copilot-chat
graphql.vscode-graphql-syntax
hashicorp.terraform
mechatroner.rainbow-csv
mermaidchart.vscode-mermaid-chart
redhat.vscode-xml
vscode-icons-team.vscode-icons
typescriptteam.native-preview
mkhl.direnv
oxc.oxc-vscode
biomejs.biome
];
};
};
@@ -43,40 +44,19 @@
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
oh-my-zsh.enable = true;
oh-my-zsh.theme = "robbyrussell";
oh-my-zsh.plugins = [
"git"
"npm"
];
initContent = ''
export SSH_AUTH_SOCK=~/.1password/agent.sock
# Auto-allow direnv for directories with flake.nix
auto_allow_direnv() {
if [[ -f flake.nix ]] && [[ ! -f .envrc ]]; then
echo "use flake" > .envrc
direnv allow
elif [[ -f flake.nix ]] && [[ -f .envrc ]]; then
direnv allow
fi
}
# Run auto-allow when changing directories
chpwd_functions+=(auto_allow_direnv)
'';
shellAliases = {
ll = "ls -l";
update = "sudo nixos-rebuild switch --flake ~/nixos#caesium";
dev = "nix develop -c $SHELL";
nixos = "code ~/nixos";
};
};
home.sessionVariables = {
# Points to the Homebrew location mentioned in your caveat
NPM_CONFIG_PREFIX = "/mnt/Projects/.npm-global/.npm-global";
};
@@ -92,8 +72,6 @@
# ~/.config (dotfiles)
xdg.enable = true;
xdg.configFile."biome.json".source = ./config.biome.json;
xdg.configFile."oxlintrc.json".source = ./config.oxlintrc.json;
xdg.configFile."ssh.conf".source = ./config.ssh.conf;
programs.ssh = {