nixos-configuration/home.nix

136 lines
3.1 KiB
Nix
Raw Normal View History

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,
...
}: {
#imports = [ "${builtins.fetchTarball https://github.com/schuelermine/xhmm/archive/1608fa757cbd8fb4f11435a50610e44de3fc2223.tar.gz}/console/nano.nix" ];
home = {
username = "vinzenz";
homeDirectory = "/home/vinzenz";
stateVersion = "22.11";
#editor = "nano";
sessionVariables = {
EDITOR = "nano";
};
packages = with pkgs; [
firefox
htop
btop
iotop
radeontop
powerline
powerline-fonts
thefuck
keepassxc
steam
wine-staging
nix-zsh-completions
tldr
my.insync-v3
jetbrains.rider
alejandra
2023-04-04 22:02:28 +02:00
# gnome-secrets
2023-04-04 21:41:44 +02:00
amberol
dotnet-sdk_7
# gnome workbench
tdesktop
lutris
];
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" "nix-zsh-completions"];
};
};
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
};
};
};
};
}