2023-04-04 21:41:44 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2023-04-04 21:57:12 +02:00
|
|
|
# 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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-04-04 21:41:44 +02:00
|
|
|
# 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";
|
|
|
|
};
|
|
|
|
|
2023-04-04 22:14:17 +02:00
|
|
|
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
|
|
|
|
];
|
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;
|
|
|
|
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";
|
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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vscode = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.vscodium;
|
|
|
|
enableUpdateCheck = false;
|
|
|
|
extensions = [pkgs.vscode-extensions.bbenoist.nix];
|
|
|
|
userSettings = {
|
2023-04-04 22:02:28 +02:00
|
|
|
"files.insertFinalNewline" = true;
|
|
|
|
"[nix]" = {
|
|
|
|
"editor.tabSize" = 2;
|
|
|
|
};
|
2023-04-04 21:41:44 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|