zaneyos/hosts/familypc/home.nix

139 lines
3.1 KiB
Nix
Raw Normal View History

2024-05-14 08:44:34 +02:00
{
config,
pkgs,
inputs,
username,
host,
gtkThemeFromScheme,
...
}:
let
inherit (import ./variables.nix)
gitUsername
gitEmail
theme
browser
;
in
{
2024-01-13 06:53:25 +01:00
# Home Manager Settings
2024-01-12 09:00:46 +01:00
home.username = "${username}";
2024-01-13 06:53:25 +01:00
home.homeDirectory = "/home/${username}";
2024-01-09 23:50:24 +01:00
home.stateVersion = "23.11";
# Set The Colorscheme
2024-01-15 20:00:56 +01:00
colorScheme = inputs.nix-colors.colorSchemes."${theme}";
# Import Program Configurations
imports = [
2024-01-14 08:54:57 +01:00
inputs.nix-colors.homeManagerModules.default
inputs.hyprland.homeManagerModules.default
2024-05-14 09:42:14 +02:00
../../config/hyprland.nix
../../config/waybar.nix
];
2024-01-13 06:53:25 +01:00
# Define Settings For Xresources
2024-01-09 23:50:24 +01:00
xresources.properties = {
"Xcursor.size" = 24;
};
# Place Files Inside Home Directory
home.file.".config/wallpapers" = {
source = ../../config/wallpapers;
recursive = true;
};
home.file.".local/share/fonts" = {
source = ../../config/fonts;
recursive = true;
};
2024-01-13 06:53:25 +01:00
# Install & Configure Git
2024-01-09 23:50:24 +01:00
programs.git = {
enable = true;
2024-01-13 06:53:25 +01:00
userName = "${gitUsername}";
userEmail = "${gitEmail}";
2024-01-09 23:50:24 +01:00
};
2024-01-13 06:53:25 +01:00
# Create XDG Dirs
2024-01-09 23:50:24 +01:00
xdg = {
userDirs = {
2024-05-14 08:44:34 +02:00
enable = true;
createDirectories = true;
2024-01-09 23:50:24 +01:00
};
};
dconf.settings = {
"org/virt-manager/virt-manager/connections" = {
2024-05-14 08:44:34 +02:00
autoconnect = [ "qemu:///system" ];
uris = [ "qemu:///system" ];
};
};
programs = {
bash = {
enable = true;
enableCompletion = true;
profileExtra = ''
#if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
# exec Hyprland
#fi
'';
initExtra = ''
neofetch
if [ -f $HOME/.bashrc-personal ]; then
source $HOME/.bashrc-personal
fi
'';
sessionVariables = {
ZANEYOS = true;
};
shellAliases = {
sv = "sudo nvim";
flake-rebuild = "nh os switch --hostname ${host} /home/${username}/zaneyos";
flake-update = "nh os switch --hostname ${host} --update";
gcCleanup = "nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
v = "nvim";
ls = "lsd";
ll = "lsd -l";
la = "lsd -a";
lal = "lsd -al";
".." = "cd ..";
};
2024-05-14 09:42:14 +02:00
};
home-manager.enable = true;
hyprlock = {
enable = true;
settings = {
general = {
disable_loading_bar = true;
grace = 300;
hide_cursor = true;
no_fade_in = false;
};
background = [
{
path = "/home/${username}/.config/wallpapers/zaney-wallpaper.jpg";
blur_passes = 3;
blur_size = 8;
}
];
input-field = [
{
size = "200, 50";
position = "0, -80";
monitor = "";
dots_center = true;
fade_on_empty = false;
font_color = "rgb(202, 211, 245)";
inner_color = "rgb(91, 96, 120)";
outer_color = "rgb(24, 25, 38)";
outline_thickness = 5;
placeholder_text = "Password...";
shadow_passes = 2;
}
];
};
2024-05-14 09:42:14 +02:00
};
};
2024-01-09 23:50:24 +01:00
}