2023-08-22 19:39:11 +03:00
|
|
|
{ config, pkgs, lib, ... }:
|
2023-07-16 16:43:13 +03:00
|
|
|
|
2023-09-06 16:10:11 +03:00
|
|
|
let cfg = config.my.roles.graphical;
|
2023-08-22 19:39:11 +03:00
|
|
|
in {
|
2023-10-03 17:15:14 +03:00
|
|
|
options.my.roles.graphical.enable = lib.mkEnableOption "Enable GUI (sway)";
|
|
|
|
options.my.roles.graphical.basic.enable =
|
|
|
|
lib.mkEnableOption "Enable GUI (MATE)";
|
|
|
|
config = lib.mkMerge [
|
|
|
|
(lib.mkIf (cfg.enable) {
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
firefox
|
|
|
|
alacritty
|
|
|
|
pavucontrol
|
|
|
|
bottom
|
|
|
|
mpv
|
|
|
|
glib
|
|
|
|
ffmpeg
|
|
|
|
cinnamon.nemo
|
|
|
|
usbmuxd
|
|
|
|
keepassxc
|
2023-12-29 11:21:42 +03:00
|
|
|
btop
|
2023-10-03 17:15:14 +03:00
|
|
|
];
|
|
|
|
# When adding pkgs prefer GTK over Qt, because Qt bad GTK good
|
2023-07-28 15:39:50 +03:00
|
|
|
|
2023-10-03 17:15:14 +03:00
|
|
|
services.greetd = {
|
|
|
|
enable = true;
|
|
|
|
vt = 7;
|
|
|
|
settings = {
|
|
|
|
default_session = {
|
|
|
|
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd sway";
|
|
|
|
user = "greeter";
|
|
|
|
};
|
2023-08-22 19:39:11 +03:00
|
|
|
};
|
2023-07-16 19:00:44 +03:00
|
|
|
};
|
2023-07-28 15:39:50 +03:00
|
|
|
|
2023-10-03 17:15:14 +03:00
|
|
|
programs.sway = {
|
|
|
|
enable = true;
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
waybar
|
|
|
|
grim
|
|
|
|
slurp
|
|
|
|
wf-recorder
|
|
|
|
sway-launcher-desktop
|
|
|
|
swaybg
|
|
|
|
swayidle
|
|
|
|
swaylock
|
|
|
|
poweralertd
|
|
|
|
kanshi
|
|
|
|
libsForQt5.qt5ct
|
|
|
|
mako
|
|
|
|
brightnessctl
|
|
|
|
wdisplays
|
|
|
|
];
|
|
|
|
wrapperFeatures.gtk = true;
|
|
|
|
};
|
2023-07-16 19:00:44 +03:00
|
|
|
|
2023-10-03 17:15:14 +03:00
|
|
|
xdg.portal = {
|
2023-08-22 19:39:11 +03:00
|
|
|
enable = true;
|
2023-10-03 17:15:14 +03:00
|
|
|
wlr.enable = true;
|
|
|
|
};
|
|
|
|
environment.sessionVariables.NIXOS_OZONE_WL =
|
|
|
|
"1"; # Enable wayland for electron
|
|
|
|
home-manager.users.ivabus = {
|
|
|
|
gtk = {
|
|
|
|
enable = true;
|
|
|
|
theme = {
|
2023-12-24 08:49:24 +03:00
|
|
|
name = "Catppuccin-Macchiato-Standard-Blue-Dark";
|
2023-10-03 17:15:14 +03:00
|
|
|
package = pkgs.catppuccin-gtk.override {
|
|
|
|
accents = [ "blue" ];
|
|
|
|
tweaks = [ "rimless" ];
|
|
|
|
size = "standard";
|
|
|
|
variant = "macchiato";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
iconTheme = {
|
|
|
|
name = "Mint-Y-Blue";
|
|
|
|
package = pkgs.cinnamon.mint-y-icons;
|
|
|
|
};
|
|
|
|
cursorTheme = {
|
|
|
|
name = "Catppuccin-Macchiato-Dark-Cursors";
|
|
|
|
package = pkgs.catppuccin-cursors.macchiatoDark;
|
|
|
|
};
|
|
|
|
font = {
|
|
|
|
name = "Ubuntu";
|
|
|
|
size = 9;
|
|
|
|
package = pkgs.ubuntu_font_family;
|
2023-08-22 19:39:11 +03:00
|
|
|
};
|
|
|
|
};
|
2023-10-03 17:15:14 +03:00
|
|
|
home.pointerCursor = {
|
2023-08-22 19:39:11 +03:00
|
|
|
name = "Catppuccin-Macchiato-Dark-Cursors";
|
|
|
|
package = pkgs.catppuccin-cursors.macchiatoDark;
|
2023-10-03 17:15:14 +03:00
|
|
|
x11.defaultCursor = "Catppuccin-Macchiato-Dark-Cursors";
|
2023-08-19 11:06:28 +03:00
|
|
|
};
|
|
|
|
};
|
2023-10-03 17:15:14 +03:00
|
|
|
})
|
|
|
|
(lib.mkIf (cfg.basic.enable) {
|
|
|
|
environment.systemPackages = with pkgs; [ firefox ubuntu-themes ];
|
|
|
|
services.xserver.desktopManager.mate.enable = true;
|
|
|
|
networking.networkmanager.enable = lib.mkForce true;
|
|
|
|
networking.networkmanager.wifi.backend = "iwd";
|
|
|
|
programs.nm-applet.enable = true;
|
2023-12-09 20:15:41 +03:00
|
|
|
services.xserver = {
|
|
|
|
displayManager.sddm.enable = true;
|
|
|
|
enable = true;
|
|
|
|
layout = "us,ru";
|
|
|
|
xkbOptions = "grp:alt_shift_toggle";
|
|
|
|
};
|
2023-10-03 17:15:14 +03:00
|
|
|
})
|
|
|
|
(lib.mkIf (cfg.basic.enable || cfg.enable) {
|
2023-12-24 08:49:24 +03:00
|
|
|
sound.enable = true;
|
2023-10-03 17:15:14 +03:00
|
|
|
qt = {
|
|
|
|
enable = true;
|
|
|
|
platformTheme = "gtk2";
|
|
|
|
style = "gtk2";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.dbus.enable = true;
|
|
|
|
|
|
|
|
fonts.packages = with pkgs; [
|
|
|
|
noto-fonts
|
|
|
|
noto-fonts-cjk
|
|
|
|
noto-fonts-cjk-sans
|
|
|
|
noto-fonts-cjk-serif
|
|
|
|
noto-fonts-emoji
|
|
|
|
jetbrains-mono
|
|
|
|
font-awesome
|
|
|
|
#google-fonts
|
|
|
|
liberation_ttf
|
|
|
|
open-sans
|
|
|
|
roboto
|
|
|
|
roboto-mono
|
|
|
|
kochi-substitute
|
|
|
|
];
|
|
|
|
})
|
|
|
|
];
|
2023-09-03 08:58:34 +03:00
|
|
|
}
|