Importing a user home manager nix config

This commit is contained in:
pazpi 2024-09-13 13:33:04 +02:00
parent d7faff3901
commit 6777fca56b
2 changed files with 72 additions and 4 deletions

View file

@ -0,0 +1,53 @@
{
config,
pkgs,
homeParameters,
...
}:
{
home.username = homeParameters.username;
home.homeDirectory = "/home/${homeParameters.username}";
imports = [ ../../modules/home ];
programs.git = {
userName = homeParameters.username;
userEmail = homeParameters.userEmail;
};
# set cursor size and dpi for 4k monitor
xresources.properties = {
"Xcursor.size" = 16;
"Xft.dpi" = 172;
};
programs.bash = {
enable = true;
enableCompletion = true;
# TODO add your custom bashrc here
bashrcExtra = ''
export PATH="$PATH:$HOME/bin:$HOME/.local/bin:$HOME/go/bin"
'';
# set some aliases, feel free to add more or remove some
shellAliases = {
k = "kubectl";
urldecode = "python3 -c 'import sys, urllib.parse as ul; print(ul.unquote_plus(sys.stdin.read()))'";
urlencode = "python3 -c 'import sys, urllib.parse as ul; print(ul.quote_plus(sys.stdin.read()))'";
};
};
# This value determines the home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new home Manager release introduces backwards
# incompatible changes.
#
# You can update home Manager without changing this value. See
# the home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "24.05";
# Let home Manager install and manage itself.
programs.home-manager.enable = true;
}