Refactor home manager, and add desktop node on sparky.

This commit is contained in:
2025-10-20 16:27:13 +01:00
parent bd15987f8d
commit 1465213c90
8 changed files with 148 additions and 64 deletions

12
home/profiles/desktop.nix Normal file
View File

@@ -0,0 +1,12 @@
{ pkgs }:
let
workstationProfile = import ./workstation.nix { inherit pkgs; };
desktopPkgs = with pkgs; [
unstable.chromium
foot # Wayland-native terminal emulator
];
in
{
packages = workstationProfile.packages ++ desktopPkgs;
}

27
home/profiles/server.nix Normal file
View File

@@ -0,0 +1,27 @@
{ pkgs }:
let
corePkgs = with pkgs; [
direnv
fzf
git
mosh
ripgrep
tmux
zsh
];
pythonEnv = pkgs.unstable.python3.withPackages (ps: [
ps.google-generativeai
ps.ipython
]);
fishPkgs = with pkgs.fishPlugins; [
pure
# don't add failed commands to history
sponge
transient-fish
];
in
{
packages = corePkgs ++ [ pythonEnv ] ++ fishPkgs;
}

View File

@@ -0,0 +1,20 @@
{ pkgs }:
let
serverProfile = import ./server.nix { inherit pkgs; };
cliPkgs = with pkgs; [
unstable.claude-code
unstable.codex
unstable.gemini-cli
];
pythonEnv = pkgs.unstable.python3.withPackages (ps: [
ps.google-generativeai
ps.ipython
ps.llm
ps.llm-gemini
]);
in
{
packages = serverProfile.packages ++ cliPkgs ++ [ pythonEnv ];
}