oizys/modules/desktop/window-managers/hyprland.nix

86 lines
1.5 KiB
Nix
Raw Normal View History

2024-01-23 11:51:13 -06:00
{
pkgs,
2024-01-23 15:50:42 -06:00
config,
2024-03-21 15:59:10 -05:00
mkOizysModule,
2024-04-28 09:12:56 -05:00
enabled,
flake,
2024-01-23 11:51:13 -06:00
...
2024-04-28 09:12:56 -05:00
}:
2024-06-18 10:45:51 -05:00
2024-04-28 09:12:56 -05:00
mkOizysModule config "hyprland" {
2024-06-19 12:02:54 -05:00
programs.hyprland = enabled;
2024-05-06 14:32:00 -05:00
security.pam.services.swaylock = { };
2024-04-28 09:12:56 -05:00
# Optional, hint electron apps to use wayland:
environment.sessionVariables.NIXOS_OZONE_WL = "1";
2024-05-31 14:53:26 -05:00
environment.systemPackages =
(with pkgs; [
wlr-randr
kanshi
brightnessctl
udiskie
eww
# notifications
libnotify
mako
# utils
grimblast
ksnip
wl-clipboard
rofi-wayland
pavucontrol
#hypr ecosystem
hyprlock
hypridle
swww
2024-07-24 12:41:05 -05:00
catppuccin-cursors.mochaDark
2024-08-08 10:34:15 -05:00
# not even clear why I need to add this but ¯\_(ツ)_/¯
kdePackages.qtwayland
2024-05-31 14:53:26 -05:00
])
2024-07-27 11:45:03 -05:00
++ [ (flake.pkg "hyprman") ]
2024-07-01 10:43:42 -05:00
2024-07-24 12:41:05 -05:00
# swww-git is broken
2024-07-27 11:45:03 -05:00
++ (with (flake.pkgs "nixpkgs-wayland"); [
2024-07-01 10:43:42 -05:00
mako
eww
wlr-randr
# swww
#
# dunst
]);
2024-04-28 09:12:56 -05:00
nixpkgs.overlays = [
2024-07-27 11:45:03 -05:00
(flake.overlay "hyprland-contrib")
2024-07-25 10:00:34 -05:00
# (overlayFrom "nixpkgs-wayland")
# (overlayFrom "hyprland")
2024-04-28 09:12:56 -05:00
];
2024-08-08 14:29:38 -05:00
# using the below to autostart Hyprland
# broke my keybindings that were working before
2024-08-13 10:34:23 -05:00
services.getty = {
extraArgs = [ "--skip-login" ];
loginOptions = "-p -- ${config.oizys.user}";
};
2024-08-08 14:29:38 -05:00
# environment.etc =
# let
# activate-snippet = ''
# if [ -z "$WAYLAND_DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
# exec Hyprland
# fi
# '';
# in
# {
# "bashrc.local".text = activate-snippet;
# "zshenv.local".text = activate-snippet;
# };
#
2024-04-28 09:12:56 -05:00
}