42 lines
851 B
Nix
42 lines
851 B
Nix
{
|
|
pkgs,
|
|
primaryUser,
|
|
inputs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
./packages.nix
|
|
./git.nix
|
|
./shell.nix
|
|
|
|
inputs.nixvim.homeModules.nixvim
|
|
./neovim
|
|
# ./python.nix
|
|
|
|
];
|
|
|
|
home = {
|
|
username = primaryUser;
|
|
stateVersion = "25.11";
|
|
sessionVariables = {
|
|
GROQ_API_KEY = "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";
|
|
};
|
|
|
|
activation = {
|
|
cloneCyperServersRepo = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
|
REPO_URL="https://git.cyperpunk.de/DerGrumpf/cyper-servers.git"
|
|
TARGET_DIR="$HOME/cyper-servers"
|
|
|
|
if [ ! -d "$TARGET_DIR" ]; then
|
|
echo "Cloning cyper-servers repository..."
|
|
${pkgs.git}/bin/git clone "$REPO_URL" "$TARGET_DIR"
|
|
else
|
|
echo "cyper-servers already exists, skipping clone."
|
|
fi
|
|
'';
|
|
};
|
|
};
|
|
}
|