nixos-cesium/nixos/home.nix
2026-03-07 22:16:26 +01:00

132 lines
2.9 KiB
Nix

# In deiner home.nix
{ config, pkgs, ... }:
let
localScripts = import ./scripts.nix { inherit pkgs; };
flakePackages = import ./flakes.nix {};
in
{
home.stateVersion = "25.11";
home.packages = with pkgs; [
# Desktop-Anwendungen
thunderbird
vlc
gimp
filezilla
solaar
jameica
libreoffice-fresh
hunspell
hunspellDicts.de_DE
darktable
kdePackages.kdenlive
# davinci-resolve-studio
# Browser
google-chrome
# Kommunikation
signal-desktop
# Remote Desktop
rustdesk-flutter
# Gaming
lutris
steam
prismlauncher
#flakePackages.hytale-launcher
# Entwicklung
jetbrains-toolbox
mkcert
gitflow
claude-code
gnomeExtensions.claude-code-usage-indicator
gnumake
p7zip
cacert
# Gnome extensions
gnomeExtensions.appindicator
gnomeExtensions.caffeine
gnomeExtensions.dash-to-dock
# Aliases
localScripts.composer
localScripts.git-cleanup-local-branches
localScripts.lazydocker
];
# Powerlevel10k Theme installieren
home.activation.installPowerlevel10k = config.lib.dag.entryAfter ["writeBoundary"] ''
P10K_DIR="$HOME/.oh-my-zsh/custom/themes/powerlevel10k"
if [ ! -d "$P10K_DIR" ]; then
$DRY_RUN_CMD mkdir -p "$HOME/.oh-my-zsh/custom/themes"
$DRY_RUN_CMD ${pkgs.git}/bin/git clone --depth=1 \
https://github.com/romkatv/powerlevel10k.git "$P10K_DIR" || true
fi
'';
# mkcert installieren (für lokale SSL-Zertifikate)
home.activation.setupMkcert = config.lib.dag.entryAfter ["writeBoundary"] ''
if [ ! -f "$HOME/.local/share/mkcert/rootCA.pem" ]; then
$DRY_RUN_CMD ${pkgs.mkcert}/bin/mkcert -install || true
fi
'';
home.shellAliases = {
ll = "ls -lah";
la = "ls -A";
l = "ls -CF";
".." = "cd ..";
"..." = "cd ../..";
rebuild = "sudo nixos-rebuild switch";
update = "sudo nixos-rebuild switch --upgrade";
c = "composer";
lzd = "lazydocker";
gclb = "git-cleanup-local-branches";
ngc = "sudo nix-store --optimise && sudo nix-collect-garbage -d";
};
home.file.".p10k.zsh".source = ./config/p10k.zsh;
home.file.".profile".text = ''
if [ -n "$BASH_VERSION" ]; then
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
'';
home.file.".ssh" = {
source = config.lib.file.mkOutOfStoreSymlink "/mnt/data/.ssh";
recursive = false;
};
home.file.".thunderbird" = {
source = config.lib.file.mkOutOfStoreSymlink "/mnt/data/Thunderbird";
recursive = false;
};
home.sessionPath = [
"${config.home.homeDirectory}/.local/bin"
"${config.home.homeDirectory}/bin"
"${config.home.homeDirectory}/.composer/vendor/bin"
"${config.home.homeDirectory}/.local/share/JetBrains/Toolbox/scripts"
];
# GTK Theme (optional, für besseres Aussehen)
gtk = {
enable = true;
theme = {
name = "Adwaita-dark";
package = pkgs.gnome-themes-extra;
};
};
}