2023-07-21 16:21:45 +04:00
|
|
|
{ outputs, options, config, lib, pkgs, ...}:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.modules.desktop.hyprland;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.modules.desktop.hyprland = {
|
|
|
|
enable = mkEnableOption false;
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2023-07-22 17:04:25 +04:00
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
displayManager = {
|
2023-07-23 15:09:13 +04:00
|
|
|
# lightdm = {
|
|
|
|
# enable = true;
|
|
|
|
# background = ../../../config/background.png;
|
|
|
|
# greeters.gtk = {
|
|
|
|
# enable = true;
|
|
|
|
# theme = {
|
|
|
|
# name = "vimix-dark-ruby";
|
|
|
|
# package = pkgs.vimix-gtk-themes;
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
gdm = {
|
2023-07-22 17:04:25 +04:00
|
|
|
enable = true;
|
2023-07-23 00:22:14 +04:00
|
|
|
};
|
2023-07-22 17:04:25 +04:00
|
|
|
};
|
|
|
|
libinput = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
# no mouse accel
|
|
|
|
mouse = {
|
|
|
|
accelProfile = "flat";
|
|
|
|
};
|
|
|
|
|
|
|
|
# no touchpad accel
|
|
|
|
touchpad = {
|
|
|
|
accelProfile = "flat";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
users.users.sako.packages = with pkgs; [
|
|
|
|
# use wayland counterparts
|
|
|
|
wofi
|
|
|
|
# network
|
|
|
|
networkmanagerapplet
|
|
|
|
# brightness
|
|
|
|
# TODO(sako):: find one for wayland
|
|
|
|
# gtk
|
|
|
|
vimix-gtk-themes
|
|
|
|
vimix-icon-theme
|
|
|
|
lxappearance
|
|
|
|
catppuccin-cursors.mochaDark
|
2023-08-31 08:46:27 +04:00
|
|
|
# screenshot
|
|
|
|
grim
|
2023-07-22 17:04:25 +04:00
|
|
|
flameshot
|
2023-08-29 13:48:16 +04:00
|
|
|
# todo figure this out
|
2023-07-24 16:31:21 +04:00
|
|
|
gamescope
|
2023-07-22 19:52:49 +04:00
|
|
|
];
|
2023-07-22 19:53:16 +04:00
|
|
|
environment.systemPackages = with pkgs; [
|
2023-07-22 19:52:49 +04:00
|
|
|
# bg
|
2023-07-22 19:29:11 +04:00
|
|
|
hyprpaper
|
2023-07-22 20:08:50 +04:00
|
|
|
# bar
|
2023-07-22 20:15:53 +04:00
|
|
|
(waybar.overrideAttrs (oldAttrs: { mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true "]; }))
|
2023-09-07 08:24:53 +04:00
|
|
|
# lock
|
|
|
|
swaylock
|
2023-09-01 08:15:33 +04:00
|
|
|
eww-wayland
|
2023-08-31 08:27:56 +04:00
|
|
|
brightnessctl
|
2023-07-22 20:42:35 +04:00
|
|
|
inotify-tools
|
2023-07-22 17:04:25 +04:00
|
|
|
];
|
2023-07-22 19:52:49 +04:00
|
|
|
|
2023-07-21 16:21:45 +04:00
|
|
|
programs.hyprland = {
|
|
|
|
enable = true;
|
|
|
|
nvidiaPatches = true;
|
|
|
|
};
|
2023-07-22 17:04:25 +04:00
|
|
|
home-manager.users.sako = { pkgs , ...}: {
|
|
|
|
home.pointerCursor = {
|
|
|
|
name = "Catppuccin-Mocha-Dark";
|
|
|
|
size = 16;
|
|
|
|
x11 = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
gtk.enable = true;
|
|
|
|
package = pkgs.catppuccin-cursors.mochaDark;
|
|
|
|
};
|
|
|
|
gtk = {
|
2023-08-29 13:48:16 +04:00
|
|
|
enable = true;
|
2023-07-22 17:04:25 +04:00
|
|
|
theme.name = "vimix-dark-ruby";
|
|
|
|
iconTheme.name = "Vimix Ruby Dark";
|
|
|
|
};
|
|
|
|
home.file = {
|
|
|
|
"background.png" = {
|
|
|
|
enable = true;
|
|
|
|
source = ../../../config/background.png;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
xdg.configFile = {
|
2023-07-22 19:32:42 +04:00
|
|
|
hypr = {
|
|
|
|
source = ../../../config/hyprland;
|
|
|
|
recursive = true;
|
|
|
|
};
|
2023-07-22 20:08:50 +04:00
|
|
|
waybar = {
|
|
|
|
source = ../../../config/waybar;
|
|
|
|
recursive = true;
|
|
|
|
};
|
2023-09-07 08:24:53 +04:00
|
|
|
swaylock = {
|
|
|
|
source = ../../../config/swaylock;
|
|
|
|
recursive = true;
|
|
|
|
};
|
2023-07-22 17:04:25 +04:00
|
|
|
};
|
|
|
|
};
|
2023-09-07 08:36:24 +04:00
|
|
|
|
|
|
|
# swaylock doesnt work without this
|
|
|
|
security.pam.services.swaylock.text = ''
|
|
|
|
# PAM configuration file for the swaylock screen locker. By default, it includes
|
|
|
|
# the 'login' configuration file (see /etc/pam.d/login)
|
|
|
|
auth include login
|
|
|
|
'';
|
|
|
|
|
2023-07-21 16:21:45 +04:00
|
|
|
};
|
|
|
|
}
|