88 lines
1.9 KiB
Nix
88 lines
1.9 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.skyg.nixos.desktop.hyprland;
|
|
in
|
|
{
|
|
options = {
|
|
skyg.nixos.desktop.hyprland = {
|
|
enabled = mkEnableOption
|
|
"Hyprland";
|
|
};
|
|
};
|
|
config = mkIf cfg.enabled {
|
|
programs.hyprland.enable = true;
|
|
# programs.hyprland.xwayland.enable = true;
|
|
programs.hyprland.systemd.setPath.enable = true;
|
|
services.hypridle.enable = true;
|
|
# services.xserver.windowManager.hypr.enable = true;
|
|
programs.hyprlock.enable = true;
|
|
environment.sessionVariables = { NIXOS_OZONE_WL = "1"; };
|
|
environment.systemPackages = with pkgs; [
|
|
# common utilities
|
|
# mpv
|
|
|
|
# sound
|
|
pavucontrol
|
|
|
|
# notification daemon
|
|
dunst
|
|
libnotify
|
|
|
|
# hyprland
|
|
pyprland
|
|
# hyprlock
|
|
# hypridle
|
|
# hyprpaper
|
|
gbar
|
|
|
|
# App Support
|
|
lxqt.lxqt-policykit
|
|
xdg-desktop-portal
|
|
xdg-desktop-portal-hyprland
|
|
|
|
# color picker
|
|
hyprpicker
|
|
|
|
|
|
# nwg-shell
|
|
# # nwg-dock
|
|
# # nwg-dock-hyprland
|
|
# # nwg-launchers
|
|
# # nwg-displays
|
|
# # nwg-drawer
|
|
# # nwg-panel
|
|
# # gopsuinfo
|
|
# # nwg-look
|
|
# # nwg-menu
|
|
# # nwg-bar
|
|
|
|
# general utilities
|
|
# swappy
|
|
hyprshot # screenshots
|
|
cliphist # clipboard manager
|
|
xfce.thunar # file manager
|
|
wofi # app launcher
|
|
|
|
# networking
|
|
networkmanagerapplet
|
|
|
|
# wl-clipboard
|
|
# wlroots
|
|
# xdg-desktop-portal-wlr
|
|
# # app launchers
|
|
# rofi-wayland
|
|
#
|
|
];
|
|
services.mpd.enable = true;
|
|
services.pipewire.wireplumber.enable = true;
|
|
users.users.${config.skyg.user.name}.extraGroups = [ "input" ];
|
|
system.userActivationScripts.hyprlandlocalConfig.text = ''
|
|
if [[ ! -h "$HOME/.config/hypr" ]]; then
|
|
ln -s "/home/${config.skyg.user.name}/nixos-setup/configs/hypr" "$HOME/.config/hypr"
|
|
fi
|
|
'';
|
|
};
|
|
}
|