nixos-configuration/home-vinzenz.nix

239 lines
5.5 KiB
Nix
Raw Normal View History

2023-04-04 21:41:44 +02:00
{
config,
pkgs,
...
}: {
# Define user account
users.users.vinzenz = {
isNormalUser = true;
description = "Vinzenz Schroeter";
extraGroups = ["networkmanager" "wheel"];
shell = pkgs.zsh;
};
# 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";
};
2023-08-26 22:37:34 +02:00
packages = with pkgs; [
## Apps
keepassxc
steam
wine-staging
insync
# gnome-secrets
tdesktop
simple-scan
wireguard-tools
# steamlink
element-desktop
# youtube-music
etcher
## system monitoring
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
docker
2023-08-27 20:24:57 +02:00
(lutris.override {
extraPkgs = pkgs: [
# List package dependencies here
];
extraLibraries = pkgs: [
# List library dependencies here
];
})
2023-08-26 22:37:34 +02:00
];
2023-04-04 21:41:44 +02:00
file.".nanorc".text = ''
set linenumbers
set mouse
'';
};
services = {
kdeconnect = {
enable = true;
indicator = true;
};
};
programs = {
home-manager.enable = true;
firefox.enable = true;
command-not-found.enable = true;
dircolors.enable = true;
fzf.enable = true;
htop.enable = true;
2023-04-04 21:41:44 +02:00
zsh = {
enable = true;
2023-08-26 17:29:01 +02:00
enableSyntaxHighlighting = true;
2023-08-26 17:29:01 +02:00
enableAutosuggestions = true;
enableVteIntegration = true;
2023-08-26 22:37:34 +02:00
initExtra = "eval \"$(direnv hook zsh)\"";
2023-04-04 21:41:44 +02:00
shellAliases = {
2023-08-27 22:48:32 +02:00
my-apply = "sudo nixos-rebuild boot";
my-switch = "sudo nixos-rebuild switch";
my-update = "sudo nixos-rebuild boot --upgrade";
2023-08-26 17:29:01 +02:00
my-fmt = "alejandra .";
2023-04-04 21:41:44 +02:00
};
2023-08-26 17:29:01 +02:00
2023-04-04 21:41:44 +02:00
history = {
size = 10000;
path = "${config.xdg.dataHome}/zsh/history";
2023-08-26 17:29:01 +02:00
expireDuplicatesFirst = true;
2023-04-04 21:41:44 +02:00
};
2023-08-26 17:29:01 +02:00
2023-04-04 21:41:44 +02:00
oh-my-zsh = {
enable = true;
theme = "agnoster";
2023-04-04 22:14:17 +02:00
plugins = ["git" "sudo" "docker" "systemadmin" "thefuck"];
2023-04-04 21:41:44 +02:00
};
};
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";
2023-04-04 21:41:44 +02:00
};
};
gh = {
enable = true;
enableGitCredentialHelper = true;
};
2023-04-04 21:41:44 +02:00
vscode = {
enable = true;
package = pkgs.vscodium;
enableUpdateCheck = false;
extensions = with pkgs; [
vscode-extensions.bbenoist.nix
vscode-extensions.ms-python.python
vscode-extensions.kamadorueda.alejandra
];
2023-04-04 21:41:44 +02:00
userSettings = {
"git.autofetch" = true;
"update.mode" = "none";
"editor.fontFamily" = "'Fira Code', 'Droid Sans Mono', 'monospace', monospace";
"editor.fontLigatures" = true;
"editor.formatOnSave" = true;
2023-08-27 22:48:32 +02:00
"editor.formatOnSaveMode" = "modificationsIfAvailable";
"editor.minimap.autohide" = true;
"diffEditor.diffAlgorithm" = "advanced";
"explorer.excludeGitIgnore" = true;
2023-08-27 22:48:32 +02:00
"workbench.startupEditor" = "readme";
"markdown.extension.tableFormatter.normalizeIndentation" = true;
"markdown.extension.toc.orderedList" = false;
"telemetry.telemetryLevel" = "off";
"redhat.telemetry.enabled" = false;
"workbench.enableExperiments" = false;
2023-04-04 21:41:44 +02:00
};
};
direnv = {
enable = true;
nix-direnv.enable = true;
};
chromium = {
enable = true;
extensions = [
{
# ublock origin
id = "cjpalhdlnbpafiamejdnhcphjbkeiagm";
}
{
id = "dcpihecpambacapedldabdbpakmachpb";
updateUrl = "https://raw.githubusercontent.com/iamadamdev/bypass-paywalls-chrome/master/updates.xml";
}
];
};
bottom = {
enable = true;
settings = {
# https://github.com/ClementTsang/bottom/blob/master/sample_configs/default_config.toml
};
};
exa = {
enable = true;
2023-08-27 22:48:32 +02:00
git = true;
icons = true;
enableAliases = true;
extraOptions = [
"--group-directories-first"
"--header"
];
};
# checked https://rycee.gitlab.io/home-manager/options.html until "programs.jq"
};
editorconfig = {
enable = true;
settings = {
"*" = {
charset = "utf-8";
end_of_line = "lf";
trim_trailing_whitespace = true;
insert_final_newline = true;
max_line_width = 120;
indent_style = "space";
indent_size = 4;
};
2023-08-26 22:37:34 +02:00
"*.nix" = {
indent_size = 2;
};
};
2023-04-04 21:41:44 +02:00
};
};
}