Refactor home manager, and add desktop node on sparky.
This commit is contained in:
12
home/profiles/desktop.nix
Normal file
12
home/profiles/desktop.nix
Normal 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
27
home/profiles/server.nix
Normal 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;
|
||||
}
|
||||
20
home/profiles/workstation.nix
Normal file
20
home/profiles/workstation.nix
Normal 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 ];
|
||||
}
|
||||
Reference in New Issue
Block a user