nix/moduler/home.nix
2026-03-30 09:34:05 +02:00

119 lines
2.6 KiB
Nix

{
inputs,
lib,
config,
pkgs,
myhostname,
...
}:
{
imports = [
../moduler/tmux.nix
../moduler/fish.nix
../moduler/kitty.nix
../moduler/dunst.nix
../moduler/nixpkgs.nix
# ../moduler/firefox.nix
../moduler/zathura.nix
../moduler/lazygit.nix
../moduler/ssh.nix
../moduler/oh-my-posh.nix
../moduler/gtk.nix
# ../moduler/neovim.nix
../moduler/programs/k9s
];
programs.home-manager.enable = true;
programs.fish.enable = true;
programs.opencode = {
enable = true;
enableMcpIntegration = false;
settings = {
"$schema" = "https://opencode.ai/config.json";
theme = lib.mkForce "catppuccin";
plugin = [ "@ex-machina/opencode-anthropic-auth" ];
mcp = {
az = {
type = "local";
command = [
"docker"
"run"
"-i"
"--rm"
"--env-file"
"/home/fw/.azure/credentials"
"mcr.microsoft.com/azure-sdk/azure-mcp:latest"
];
};
k8s = {
type = "local";
command = [
"docker"
"run"
"--rm"
"-i"
"--user"
"1000:100"
"-v"
"/home/fw/.kube:/kube:ro"
"ghcr.io/containers/kubernetes-mcp-server:latest"
"--kubeconfig"
"/kube/config"
];
};
github = {
type = "local";
command = [
"docker"
"run"
"-i"
"--rm"
"-e"
"GITHUB_PERSONAL_ACCESS_TOKEN"
"ghcr.io/github/github-mcp-server"
];
};
jira = {
type = "local";
command = [
"docker"
"run"
"-i"
"--rm"
"--env-file"
"/home/fw/.config/opencode/.env.local"
"ghcr.io/sooperset/mcp-atlassian:latest"
];
};
};
};
};
home.activation.opencodeAtlassianEnv = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
mkdir -p "$HOME/.config/opencode"
if [ -r /run/secrets/opencode_atlassian_env ]; then
ln -sf /run/secrets/opencode_atlassian_env "$HOME/.config/opencode/.env.local"
fi
'';
programs.alacritty = {
enable = true;
# theme = "catppuccin_${theme}";
theme = "catppuccin_mocha";
settings = {
font = {
normal = {
family = lib.mkForce "FiraCode Nerd Font Mono";
};
size = lib.mkForce 16;
};
};
};
home.username = "fw";
home.homeDirectory = "/home/fw";
home.stateVersion = "25.05";
systemd.user.startServices = "sd-switch";
}