nixos-configuration/home.nix
2023-08-19 20:13:11 +02:00

165 lines
3.8 KiB
Nix

{
config,
pkgs,
...
}: {
# override insync build version
nixpkgs.config.packageOverrides = pkgs: {
my = import (builtins.fetchTarball https://github.com/kaesaecracker/nixpkgs/archive/0fa91456d2f6dfb9cd4008e81c89c2fec8512415.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
simple-scan
gnome.gpaste
wireguard-tools
# steamlink
chromium
element-desktop
]
# system monitoring
++ [
htop
btop
iotop
radeontop
lsof
wirelesstools
#lm-sensors
]
# command line niceness
++ [
tldr
powerline
powerline-fonts
thefuck
]
# development
++ [
dotnet-sdk_7
# gnome workbench
jetbrains.rider
alejandra
arduino
uucp
screen
jetbrains.pycharm-professional
kdiff3
];
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";
merge.tool = "kdiff3";
};
};
vscode = {
enable = true;
package = pkgs.vscodium;
enableUpdateCheck = false;
extensions = with pkgs; [
vscode-extensions.bbenoist.nix
vscode-extensions.ms-python.python
];
userSettings = {
"files.insertFinalNewline" = true;
"git.autofetch" = true;
"update.mode" = "none";
"editor.fontFamily" = "'Fira Code', 'Droid Sans Mono', 'monospace', monospace";
"editor.fontLigatures" = true;
"[nix]" = {
"editor.tabSize" = 2;
};
"redhat.telemetry.enabled" = false;
"markdown.extension.tableFormatter.normalizeIndentation" = true;
"markdown.extension.toc.orderedList" = false;
};
};
};
};
}