2024-03-28 19:52:15 -04:00
|
|
|
{ pkgs, lib, config, ... }: {
|
|
|
|
|
2024-03-30 14:01:22 -04:00
|
|
|
imports = [ ./hypridle ./hyprlock ./hyprpaper ./hyprshade ];
|
2024-03-30 13:58:07 -04:00
|
|
|
|
2024-03-28 19:52:15 -04:00
|
|
|
options = {
|
|
|
|
desktopEnv.hyprland.enable =
|
|
|
|
lib.mkEnableOption "Enables hyprland with extra apps.";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf config.desktopEnv.hyprland.enable {
|
|
|
|
|
2024-03-30 13:58:07 -04:00
|
|
|
# Hypr* modules, plguins, and tools.
|
|
|
|
desktopEnv.hyprland.hypridle.enable = lib.mkDefault true;
|
|
|
|
desktopEnv.hyprland.hyprlock.enable = lib.mkDefault true;
|
|
|
|
desktopEnv.hyprland.hyprpaper.enable = lib.mkDefault true;
|
|
|
|
desktopEnv.hyprland.hyprshade.enable = lib.mkDefault true;
|
|
|
|
|
2024-03-28 19:52:15 -04:00
|
|
|
# Basic apps needed to run a hyprland desktop.
|
|
|
|
guiApps.waybar.enable = lib.mkDefault true;
|
|
|
|
guiApps.mako.enable = lib.mkDefault true;
|
|
|
|
guiApps.fuzzel.enable = lib.mkDefault true;
|
2024-03-29 23:27:08 -04:00
|
|
|
guiApps.wlogout.enable = lib.mkDefault true;
|
2024-03-28 19:52:15 -04:00
|
|
|
guiApps.alacritty.enable = lib.mkDefault true;
|
2024-03-30 21:29:24 -04:00
|
|
|
guiApps.firefox.enable = lib.mkDefault true;
|
2024-03-28 19:52:15 -04:00
|
|
|
|
|
|
|
# Packages that should be installed to the user profile.
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
brightnessctl
|
|
|
|
evince
|
|
|
|
hyprcursor
|
|
|
|
hyprland-protocols
|
|
|
|
hyprnome
|
|
|
|
hyprshot
|
2024-03-30 14:48:48 -04:00
|
|
|
playerctl
|
2024-03-28 19:52:15 -04:00
|
|
|
xfce.exo
|
|
|
|
xfce.ristretto
|
|
|
|
xfce.thunar
|
|
|
|
xfce.thunar-archive-plugin
|
|
|
|
xfce.thunar-media-tags-plugin
|
|
|
|
xfce.thunar-volman
|
|
|
|
xfce.tumbler
|
|
|
|
xfce.xfce4-settings
|
|
|
|
xfce.xfce4-taskmanager
|
|
|
|
xfce.xfconf
|
|
|
|
];
|
|
|
|
|
2024-03-29 22:23:49 -04:00
|
|
|
services.cliphist.enable = true;
|
|
|
|
|
2024-03-28 19:52:15 -04:00
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = builtins.readFile ./hyprland.conf;
|
|
|
|
};
|
|
|
|
|
|
|
|
xdg.configFile."xfce4/helpers.rc".text = ''
|
|
|
|
TerminalEmulator=alacritty
|
|
|
|
FileManager=thunar
|
|
|
|
WebBrowser=firefox
|
|
|
|
'';
|
|
|
|
|
2024-03-30 14:48:48 -04:00
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
|
|
|
configPackages = [ pkgs.xdg-desktop-portal-hyprland ];
|
|
|
|
extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
|
|
|
|
};
|
|
|
|
|
2024-03-28 19:52:15 -04:00
|
|
|
home.pointerCursor = {
|
|
|
|
gtk.enable = true;
|
2024-03-28 21:34:33 -04:00
|
|
|
x11.enable = true;
|
2024-03-28 19:52:15 -04:00
|
|
|
package = pkgs.catppuccin-cursors.frappeDark;
|
|
|
|
name = "Catppuccin-Frappe-Dark-Cursors";
|
|
|
|
size = 24;
|
|
|
|
};
|
|
|
|
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
|
|
|
platformTheme = "gtk";
|
|
|
|
style.name = "Catppuccin-Frappe-Compact-Mauve-Dark";
|
|
|
|
};
|
|
|
|
|
|
|
|
gtk = {
|
|
|
|
enable = true;
|
2024-03-28 22:12:08 -04:00
|
|
|
|
2024-03-28 19:52:15 -04:00
|
|
|
theme = {
|
|
|
|
package = pkgs.catppuccin-gtk.override {
|
|
|
|
accents = [ "mauve" ];
|
|
|
|
size = "compact";
|
|
|
|
variant = "frappe";
|
|
|
|
tweaks = [ "normal" ];
|
|
|
|
};
|
|
|
|
name = "Catppuccin-Frappe-Compact-Mauve-Dark";
|
|
|
|
};
|
2024-03-28 22:12:08 -04:00
|
|
|
|
2024-03-28 19:52:15 -04:00
|
|
|
iconTheme = {
|
|
|
|
package = pkgs.catppuccin-papirus-folders.override {
|
|
|
|
flavor = "frappe";
|
|
|
|
accent = "mauve";
|
|
|
|
};
|
|
|
|
name = "Papirus-Dark";
|
|
|
|
};
|
2024-03-28 22:12:08 -04:00
|
|
|
|
2024-03-28 19:52:15 -04:00
|
|
|
font = {
|
|
|
|
name = "NotoSans Nerd Font Regular";
|
2024-03-28 20:38:13 -04:00
|
|
|
package = pkgs.nerdfonts.override { fonts = [ "Noto" ]; };
|
2024-03-28 19:52:15 -04:00
|
|
|
size = 11;
|
|
|
|
};
|
|
|
|
};
|
2024-03-28 22:12:08 -04:00
|
|
|
|
|
|
|
dconf.settings = {
|
|
|
|
"org/gnome/desktop/interface" = {
|
|
|
|
gtk-theme = "Catppuccin-Frappe-Compact-Mauve-Dark";
|
|
|
|
color-scheme = "prefer-dark";
|
2024-03-28 22:42:43 -04:00
|
|
|
cursor-theme = "Catppuccin-Frappe-Dark-Cursors";
|
|
|
|
cursor-size = 24;
|
2024-03-28 22:12:08 -04:00
|
|
|
};
|
|
|
|
};
|
2024-03-28 19:52:15 -04:00
|
|
|
};
|
2024-03-28 22:12:08 -04:00
|
|
|
}
|