zaneyos/home.nix
2024-01-14 01:35:25 -06:00

156 lines
3.9 KiB
Nix

{ config, pkgs, inputs, username, gitUsername, gitEmail, ... }:
{
# Home Manager Settings
home.username = "${username}";
home.homeDirectory = "/home/${username}";
home.stateVersion = "23.11";
# Set The Colorscheme
colorScheme = inputs.nix-colors.colorSchemes.gruvbox-dark-medium;
imports = [
./config/waybar.nix
./config/kitty.nix
];
# Place Files Inside Home Directory
home.file.".config/zaney-stinger.mov".source = ./media/zaney-stinger.mov;
home.file.".config/pipewire/pipewire.conf".source = ./config/pipewire/pipewire.conf;
home.file.".config/neofetch/config.conf".source = ./config/neofetch/config.conf;
home.file.".vimrc".source = ./config/vimrc;
home.file.".emoji".source = ./config/emoji;
home.file.".face".source = ./config/face.jpg;
home.file."Pictures/Wallpapers" = {
source = ./media/Wallpapers;
recursive = true;
};
home.file.".local/share/fonts" = {
source = ./fonts;
recursive = true;
};
home.file.".config/rofi" = {
source = ./config/rofi;
recursive = true;
};
home.file.".config/swaync" = {
source = ./config/swaync;
recursive = true;
};
home.file.".config/hypr" = {
source = ./config/hyprland;
recursive = true;
};
# Define Settings For Xresources
xresources.properties = {
"Xcursor.size" = 24;
};
# Install & Configure Git
programs.git = {
enable = true;
userName = "${gitUsername}";
userEmail = "${gitEmail}";
};
# Install Packages For The User
home.packages = with pkgs; [
neofetch lolcat cmatrix discord firefox btop libvirt
swww polkit_gnome grim slurp lm_sensors unzip unrar gnome.file-roller
libnotify swaynotificationcenter rofi-wayland imv v4l-utils
ydotool wl-clipboard socat cowsay lsd pkg-config transmission-gtk mpv
gimp obs-studio blender kdenlive meson hugo gnumake ninja go
nodejs godot_4 rustup pavucontrol audacity zeroad xonotic
openra font-awesome symbola noto-fonts-color-emoji material-icons
spotify
# Import Scripts
(import ./scripts/emopicker9000.nix { inherit pkgs; })
(import ./scripts/task-waybar.nix { inherit pkgs; })
(import ./scripts/squirtle.nix { inherit pkgs; })
(import ./scripts/wallsetter.nix { inherit pkgs; })
];
# Configure Cursor Theme
home.pointerCursor = {
gtk.enable = true;
x11.enable = true;
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Ice";
size = 24;
};
# Enable & Configure QT
qt.enable = true;
qt.platformTheme = "gtk";
qt.style.name = "adwaita-dark";
qt.style.package = pkgs.adwaita-qt;
# Theme GTK
gtk = {
enable = true;
font = {
name = "Ubuntu";
size = 12;
package = pkgs.ubuntu_font_family;
};
theme = {
name = "Tokyonight-Storm-BL";
package = pkgs.tokyo-night-gtk;
};
iconTheme = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
};
cursorTheme = {
name = "Bibata-Modern-Ice";
package = pkgs.bibata-cursors;
};
gtk3.extraConfig = {
Settings = ''
gtk-application-prefer-dark-theme=1
'';
};
gtk4.extraConfig = {
Settings = ''
gtk-application-prefer-dark-theme=1
'';
};
};
# Create XDG Dirs
xdg = {
userDirs = {
enable = true;
createDirectories = true;
};
};
# Configure Bash
programs.bash = {
enable = true;
enableCompletion = true;
profileExtra = ''
#if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
# exec Hyprland
#fi
'';
sessionVariables = {
};
shellAliases = {
sv="sudo vim";
flake-rebuild="sudo nixos-rebuild switch --flake ~/zaneyos/#workstation";
laptop-rebuild="sudo nixos-rebuild switch --flake ~/zaneyos/#laptop";
v="vim";
ls="lsd";
ll="lsd -l";
la="lsd -a";
lal="lsd -al";
".."="cd ..";
};
};
programs.home-manager.enable = true;
}