2024-01-15 09:04:58 +01:00
|
|
|
{ config, pkgs, inputs, username,
|
2024-01-15 20:00:56 +01:00
|
|
|
gitUsername, gitEmail, gtkThemeFromScheme,
|
2024-01-17 09:17:12 +01:00
|
|
|
theme, browser, wallpaperDir, wallpaperGit,
|
|
|
|
flakeDir, ... }:
|
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";
|
|
|
|
|
2024-01-14 08:27:50 +01:00
|
|
|
# Set The Colorscheme
|
2024-01-15 20:00:56 +01:00
|
|
|
colorScheme = inputs.nix-colors.colorSchemes."${theme}";
|
2024-01-14 08:27:50 +01:00
|
|
|
|
2024-01-17 07:50:43 +01:00
|
|
|
# Import Program Configurations
|
2024-01-14 08:27:50 +01:00
|
|
|
imports = [
|
2024-01-14 08:54:57 +01:00
|
|
|
inputs.nix-colors.homeManagerModules.default
|
2024-01-18 05:33:57 +01:00
|
|
|
./config/home/waybar.nix
|
|
|
|
./config/home/swaync.nix
|
|
|
|
./config/home/swaylock.nix
|
|
|
|
./config/home/neofetch.nix
|
|
|
|
./config/home/hyprland.nix
|
|
|
|
./config/home/kitty.nix
|
2024-01-18 06:37:27 +01:00
|
|
|
./config/home/rofi.nix
|
2024-01-18 05:33:57 +01:00
|
|
|
./config/home/vim.nix
|
2024-01-18 06:37:27 +01:00
|
|
|
./config/home/files.nix
|
2024-01-14 08:27:50 +01:00
|
|
|
];
|
|
|
|
|
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; [
|
2024-01-17 07:50:43 +01:00
|
|
|
pkgs."${browser}" neofetch lolcat cmatrix discord htop btop libvirt
|
2024-01-09 23:50:24 +01:00
|
|
|
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-18 07:20:17 +01:00
|
|
|
spotify brightnessctl swayidle vim wget curl neovide neovim
|
2024-01-18 05:33:57 +01:00
|
|
|
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
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; })
|
2024-01-17 07:50:43 +01:00
|
|
|
(import ./config/scripts/wallsetter.nix { inherit pkgs; inherit wallpaperDir; })
|
2024-01-17 09:17:12 +01:00
|
|
|
(import ./config/scripts/themechange.nix { inherit pkgs; inherit flakeDir; })
|
2024-01-17 10:09:45 +01:00
|
|
|
(import ./config/scripts/theme-selector.nix { inherit pkgs; })
|
2024-01-09 23:50:24 +01:00
|
|
|
];
|
|
|
|
|
2024-01-17 07:50:43 +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
|
|
|
|
|
|
|
# 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
|
|
|
|
2024-01-17 07:50:43 +01:00
|
|
|
# Theme QT -> GTK
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
|
|
|
platformTheme = "gtk";
|
|
|
|
style = {
|
|
|
|
name = "adwaita-dark";
|
|
|
|
package = pkgs.adwaita-qt;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
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-18 05:33:57 +01:00
|
|
|
flake-rebuild="sudo nixos-rebuild switch --flake ${flakeDir}";
|
|
|
|
laptop-rebuild="sudo nixos-rebuild switch --flake ${flakeDir}";
|
2024-01-17 11:00:40 +01:00
|
|
|
gcCleanup="nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
|
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;
|
|
|
|
}
|