zaneyos/home.nix

153 lines
3.6 KiB
Nix
Raw Normal View History

2024-01-15 09:04:58 +01:00
{ config, pkgs, inputs, username,
2024-01-15 20:00:56 +01:00
gitUsername, gitEmail, gtkThemeFromScheme,
theme, ... }:
2024-01-09 23:50:24 +01:00
{
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}";
imports = [
2024-01-14 08:54:57 +01:00
inputs.nix-colors.homeManagerModules.default
./config/waybar.nix
2024-01-15 19:31:45 +01:00
./config/swaync.nix
2024-01-15 09:04:58 +01:00
./config/neofetch.nix
2024-01-15 07:26:14 +01:00
./config/hyprland.nix
./config/kitty.nix
2024-01-15 18:33:36 +01:00
./config/rofi.nix
2024-01-15 09:19:29 +01:00
./config/vim.nix
2024-01-15 18:33:36 +01:00
./config/files.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;
};
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-15 20:15:51 +01:00
# Starship Prompt
programs.starship = {
enable = true;
package = pkgs.starship;
settings = {
add_newline = true;
character = {
2024-01-15 20:16:57 +01:00
success_symbol = "[](bold green)";
error_symbol = "[](bold red)";
2024-01-15 20:15:51 +01:00
};
package = {
disabled = false;
};
};
};
2024-01-13 06:53:25 +01:00
# Install Packages For The User
2024-01-09 23:50:24 +01:00
home.packages = with pkgs; [
neofetch lolcat cmatrix discord firefox btop libvirt
swww polkit_gnome grim slurp lm_sensors unzip unrar gnome.file-roller
2024-01-11 05:03:15 +01:00
libnotify swaynotificationcenter rofi-wayland imv v4l-utils
2024-01-09 23:50:24 +01:00
ydotool wl-clipboard socat cowsay lsd pkg-config transmission-gtk mpv
2024-01-13 06:53:25 +01:00
gimp obs-studio blender kdenlive meson hugo gnumake ninja go
2024-01-11 05:03:15 +01:00
nodejs godot_4 rustup pavucontrol audacity zeroad xonotic
2024-01-09 23:50:24 +01:00
openra font-awesome symbola noto-fonts-color-emoji material-icons
2024-01-11 05:03:15 +01:00
spotify
2024-01-09 23:50:24 +01:00
# Import Scripts
2024-01-15 18:40:26 +01:00
(import ./config/scripts/emopicker9000.nix { inherit pkgs; })
(import ./config/scripts/task-waybar.nix { inherit pkgs; })
(import ./config/scripts/squirtle.nix { inherit pkgs; })
(import ./config/scripts/wallsetter.nix { inherit pkgs; })
2024-01-09 23:50:24 +01:00
];
2024-01-13 06:53:25 +01:00
# Configure Cursor Theme
2024-01-09 23:50:24 +01:00
home.pointerCursor = {
gtk.enable = true;
x11.enable = true;
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Ice";
size = 24;
};
2024-01-13 06:53:25 +01:00
# Enable & Configure QT
2024-01-09 23:50:24 +01:00
qt.enable = true;
qt.platformTheme = "gtk";
qt.style.name = "adwaita-dark";
qt.style.package = pkgs.adwaita-qt;
2024-01-13 06:53:25 +01:00
# Theme GTK
2024-01-09 23:50:24 +01:00
gtk = {
enable = true;
font = {
name = "Ubuntu";
size = 12;
package = pkgs.ubuntu_font_family;
};
theme = {
2024-01-15 09:04:58 +01:00
name = "${config.colorScheme.slug}";
package = gtkThemeFromScheme {scheme = config.colorScheme;};
2024-01-09 23:50:24 +01:00
};
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
'';
};
};
2024-01-13 06:53:25 +01:00
# Create XDG Dirs
2024-01-09 23:50:24 +01:00
xdg = {
userDirs = {
enable = true;
createDirectories = true;
};
};
2024-01-13 06:53:25 +01:00
# Configure Bash
2024-01-09 23:50:24 +01:00
programs.bash = {
enable = true;
enableCompletion = true;
2024-01-11 05:03:15 +01:00
profileExtra = ''
2024-01-11 06:39:57 +01:00
#if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
# exec Hyprland
#fi
2024-01-11 05:03:15 +01:00
'';
2024-01-09 23:50:24 +01:00
sessionVariables = {
};
shellAliases = {
sv="sudo vim";
2024-01-11 05:03:15 +01:00
flake-rebuild="sudo nixos-rebuild switch --flake ~/zaneyos/#workstation";
laptop-rebuild="sudo nixos-rebuild switch --flake ~/zaneyos/#laptop";
2024-01-09 23:50:24 +01:00
v="vim";
ls="lsd";
ll="lsd -l";
la="lsd -a";
lal="lsd -al";
".."="cd ..";
};
};
programs.home-manager.enable = true;
}