{ config, pkgs, ... }: { # override insync build version nixpkgs.config.packageOverrides = pkgs: { my = import (builtins.fetchTarball https://github.com/kaesaecracker/nixpkgs/archive/db254c650b7f5b6657c6579afba1568f7f997195.tar.gz) { config = config.nixpkgs.config; }; }; # Define user account users.users.vinzenz = { isNormalUser = true; description = "Vinzenz Schroeter"; extraGroups = ["networkmanager" "wheel"]; shell = pkgs.zsh; # openssh.authorizedKeys.keys = [ "ssh-dss AAAAB3NzaC1kc3MAAACBAPIkGWVEt4..." ]; }; # home manager home-manager.useUserPackages = true; home-manager.useGlobalPkgs = true; home-manager.users.vinzenz = { config, pkgs, ... }: { home = { username = "vinzenz"; homeDirectory = "/home/vinzenz"; stateVersion = "22.11"; sessionVariables = { EDITOR = "nano"; }; packages = with pkgs; [] # Apps ++ [ firefox keepassxc steam wine-staging my.insync-v3 # gnome-secrets tdesktop lutris amberol ] # system monitoring ++ [ htop btop iotop radeontop ] # command line niceness ++ [ tldr powerline powerline-fonts thefuck ] # development ++ [ dotnet-sdk_7 # gnome workbench jetbrains.rider alejandra ]; file.".nanorc".text = '' set linenumbers set mouse ''; }; services = { kdeconnect = { enable = true; indicator = true; }; }; programs = { home-manager.enable = true; zsh = { enable = true; shellAliases = { my-update = "sudo nixos-rebuild switch"; my-config = "sudo nano /etc/nixos/configuration.nix"; my-fmt = "sudo alejandra /etc/nixos/configuration.nix"; }; history = { size = 10000; path = "${config.xdg.dataHome}/zsh/history"; }; oh-my-zsh = { enable = true; theme = "agnoster"; plugins = ["git" "sudo" "docker" "systemadmin" "thefuck"]; }; }; git = { enable = true; userName = "Vinzenz Schroeter"; userEmail = "vinzenz.f.s@gmail.com"; #package = pkgs.gitFull; #config.credential.helper = "libsecret"; aliases = { prettylog = "log --pretty=oneline --graph"; }; extraConfig = { pull = { ff = "only"; }; init = { defaultBranch = "main"; }; }; }; vscode = { enable = true; package = pkgs.vscodium; enableUpdateCheck = false; extensions = [pkgs.vscode-extensions.bbenoist.nix]; userSettings = { "files.insertFinalNewline" = true; "[nix]" = { "editor.tabSize" = 2; }; }; }; }; }; }