mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-11-27 00:53:09 +01:00
96 lines
1.9 KiB
Nix
96 lines
1.9 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
inputs,
|
|
username,
|
|
host,
|
|
gtkThemeFromScheme,
|
|
...
|
|
}:
|
|
let
|
|
inherit (import ./variables.nix)
|
|
gitUsername
|
|
gitEmail
|
|
theme
|
|
browser
|
|
;
|
|
in
|
|
{
|
|
# Home Manager Settings
|
|
home.username = "${username}";
|
|
home.homeDirectory = "/home/${username}";
|
|
home.stateVersion = "23.11";
|
|
|
|
# Set The Colorscheme
|
|
colorScheme = inputs.nix-colors.colorSchemes."${theme}";
|
|
|
|
# Import Program Configurations
|
|
imports = [
|
|
inputs.nix-colors.homeManagerModules.default
|
|
inputs.hyprland.homeManagerModules.default
|
|
../../config/hyprland.nix
|
|
];
|
|
|
|
# Define Settings For Xresources
|
|
xresources.properties = {
|
|
"Xcursor.size" = 24;
|
|
};
|
|
|
|
# Install & Configure Git
|
|
programs.git = {
|
|
enable = true;
|
|
userName = "${gitUsername}";
|
|
userEmail = "${gitEmail}";
|
|
};
|
|
|
|
# Create XDG Dirs
|
|
xdg = {
|
|
userDirs = {
|
|
enable = true;
|
|
createDirectories = true;
|
|
};
|
|
};
|
|
|
|
dconf.settings = {
|
|
"org/virt-manager/virt-manager/connections" = {
|
|
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}";
|
|
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 ..";
|
|
neofetch="neofetch --ascii ~/.config/ascii-neofetch";
|
|
};
|
|
};
|
|
|
|
|
|
programs.home-manager.enable = true;
|
|
}
|