2024-04-07 22:16:33 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
2024-03-31 08:09:03 -04:00
|
|
|
options = {
|
2024-04-05 16:43:19 -04:00
|
|
|
desktopEnv.sway.enable = lib.mkEnableOption "Sway with extra apps.";
|
2024-03-31 08:09:03 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf config.desktopEnv.sway.enable {
|
|
|
|
# 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;
|
|
|
|
guiApps.wlogout.enable = lib.mkDefault true;
|
|
|
|
guiApps.alacritty.enable = lib.mkDefault true;
|
|
|
|
guiApps.firefox.enable = lib.mkDefault true;
|
|
|
|
|
|
|
|
# Packages that should be installed to the user profile.
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
brightnessctl
|
|
|
|
evince
|
|
|
|
playerctl
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
services.cliphist.enable = true;
|
|
|
|
|
|
|
|
wayland.windowManager.sway = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = builtins.readFile ./config.conf;
|
|
|
|
};
|
|
|
|
|
|
|
|
xdg.configFile."xfce4/helpers.rc".text = ''
|
|
|
|
TerminalEmulator=alacritty
|
|
|
|
FileManager=thunar
|
|
|
|
WebBrowser=firefox
|
|
|
|
'';
|
|
|
|
|
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
2024-04-07 22:16:33 -04:00
|
|
|
configPackages = [pkgs.xdg-desktop-portal-wlr];
|
|
|
|
extraPortals = [pkgs.xdg-desktop-portal-wlr];
|
2024-03-31 08:09:03 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
home.pointerCursor = {
|
|
|
|
gtk.enable = true;
|
|
|
|
x11.enable = true;
|
|
|
|
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;
|
|
|
|
|
|
|
|
theme = {
|
|
|
|
package = pkgs.catppuccin-gtk.override {
|
2024-04-07 22:16:33 -04:00
|
|
|
accents = ["mauve"];
|
2024-03-31 08:09:03 -04:00
|
|
|
size = "compact";
|
|
|
|
variant = "frappe";
|
2024-04-07 22:16:33 -04:00
|
|
|
tweaks = ["normal"];
|
2024-03-31 08:09:03 -04:00
|
|
|
};
|
|
|
|
name = "Catppuccin-Frappe-Compact-Mauve-Dark";
|
|
|
|
};
|
|
|
|
|
|
|
|
iconTheme = {
|
|
|
|
package = pkgs.catppuccin-papirus-folders.override {
|
|
|
|
flavor = "frappe";
|
|
|
|
accent = "mauve";
|
|
|
|
};
|
|
|
|
name = "Papirus-Dark";
|
|
|
|
};
|
|
|
|
|
|
|
|
font = {
|
|
|
|
name = "NotoSans Nerd Font Regular";
|
2024-04-07 22:16:33 -04:00
|
|
|
package = pkgs.nerdfonts.override {fonts = ["Noto"];};
|
2024-03-31 08:09:03 -04:00
|
|
|
size = 11;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
dconf.settings = {
|
|
|
|
"org/gnome/desktop/interface" = {
|
|
|
|
gtk-theme = "Catppuccin-Frappe-Compact-Mauve-Dark";
|
|
|
|
color-scheme = "prefer-dark";
|
|
|
|
cursor-theme = "Catppuccin-Frappe-Dark-Cursors";
|
|
|
|
cursor-size = 24;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|