nixos-cesium/config/users/sebastian.nix
2026-02-07 13:23:02 +01:00

102 lines
2.3 KiB
Nix

# /etc/nixos/sebastian.nix
# Benutzer-Konfiguration
{ config, pkgs, lib, ... }:
{
# Benutzer sebastian
users.users.sebastian = {
isNormalUser = true;
description = "Sebastian Fischer";
extraGroups = [
"networkmanager"
"wheel"
"docker"
"libvirtd"
];
shell = pkgs.zsh;
hashedPassword = "$6$CAuppl9g4RL/0BpQ$njjjKs2MFlHRCxlBk.34f2z.wJ3nEOI4xOdOBEds59Adcr3ngJ1lVFpOS0v0pg4/k5pTg0Lgj.88w/RgR2/MS.";
};
# SSH für ssh-askpass (verwendet von Git, etc.)
programs.ssh.askPassword = "${pkgs.x11_ssh_askpass}/libexec/x11-ssh-askpass";
home-manager.users.sebastian = lib.mkMerge [
(import ../home.nix)
{
programs.git = {
enable = true;
settings = {
user.name = "Sebastian Fischer"; # ANPASSEN
user.email = "typo3@evoweb.de"; # ANPASSEN
init.defaultBranch = "main";
core.editor = "vim";
pull.rebase = false;
};
};
# Zsh mit Oh-My-Zsh und Powerlevel10k
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
oh-my-zsh = {
enable = true;
theme = "powerlevel10k/powerlevel10k";
plugins = [
"git"
"git-flow"
"docker"
"docker-compose"
"systemd"
"sudo"
];
custom = "$HOME/.oh-my-zsh/custom";
};
shellAliases = {
ll = "ls -lah";
la = "ls -A";
l = "ls -CF";
".." = "cd ..";
"..." = "cd ../..";
rebuild = "sudo nixos-rebuild switch";
update = "sudo nixos-rebuild switch --upgrade";
};
initContent = ''
# Powerlevel10k Konfiguration laden (falls vorhanden)
[[ -f ~/.p10k.zsh ]] && source ~/.p10k.zsh
'';
};
# Vim Konfiguration
programs.vim = {
enable = true;
defaultEditor = true;
settings = {
number = true;
relativenumber = true;
tabstop = 2;
shiftwidth = 2;
expandtab = true;
};
extraConfig = ''
syntax on
set encoding=utf-8
set autoindent
set smartindent
'';
};
}
];
}