puzzlevision/users/jo/home.nix
Jo 339bd28d1d [general] add work and gaming user, tweak configs
feat: added new ssh configuration modules for home-manager

feat: add user work with configurations for my work environment

feat: added gaming user with configuration for my gaming enviornment eg. lutris and steam
Signed-off-by: Jo <johannesreckers2006@gmail.com>
2024-05-20 18:08:16 +02:00

90 lines
1.5 KiB
Nix

{
inputs,
lib,
config,
pkgs,
outputs,
...
}: {
imports = [
./desktop/kde.nix
outputs.homeManagerModules.development.ssh
];
nixpkgs = {
config = {
allowUnfree = true;
# Workaround for https://github.com/nix-community/home-manager/issues/2942
allowUnfreePredicate = _: true;
};
};
# Username and home directory
home = {
username = "jo";
homeDirectory = "/home/jo";
};
# General packages
home.packages = with pkgs; [
qflipper
wineWowPackages.waylandFull
vesktop
# For development
avra
avrdude
vscodium
jetbrains.phpstorm
git
bun
];
# Enable home-manager
programs.home-manager.enable = true;
# Enable and configure git
programs.git = {
enable = true;
userEmail = "jo@thevoid.cafe";
userName = "Jo";
extraConfig = {
user = {
signingkey = "$HOME/.ssh/id_ed25519";
};
init = {
defaultBranch = "main";
};
color = {
ui = true;
};
};
};
programs.gh = {
enable = true;
gitCredentialHelper = {
enable = true;
hosts = [
"https://github.com"
"https://gist.github.com"
"https://git.thevoid.cafe"
"https://gitlab.org"
"https://git.semiko.dev"
"https://bitbucket.org"
];
};
};
# Nicely reload system units when changing configs
systemd.user.startServices = "sd-switch";
home.stateVersion = "23.05";
}