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

56 lines
1 KiB
Nix
Raw Normal View History

2024-01-23 11:51:13 -06:00
{
inputs,
pkgs,
2024-01-23 15:50:42 -06:00
config,
lib,
2024-01-23 11:51:13 -06:00
...
2024-01-23 19:13:42 -06:00
}: let
2024-01-23 15:50:42 -06:00
inherit (lib) mkIf;
cfg = config.programs.hyprland;
2024-02-13 12:20:54 -06:00
lock = pkgs.writeShellApplication {
name = "lock";
runtimeInputs = with pkgs; [swaylock];
text = ''
2024-02-15 10:28:25 -06:00
swaylock -c 1e1e2e
2024-02-13 12:20:54 -06:00
'';
};
2024-01-23 19:13:42 -06:00
in {
2024-01-23 15:50:42 -06:00
config = mkIf cfg.enable {
2024-01-23 19:13:42 -06:00
security.pam.services.swaylock = {};
2024-02-02 16:38:56 -06:00
# programs.hyprland.package = inputs.hyprland.packages.${pkgs.system}.default;
2024-01-23 19:13:42 -06:00
# Optional, hint electron apps to use wayland:
environment.sessionVariables.NIXOS_OZONE_WL = "1";
2024-01-24 10:45:54 -06:00
2024-01-23 19:13:42 -06:00
environment.systemPackages = with pkgs; [
2024-02-20 13:11:57 -06:00
swayidle
2024-01-24 10:45:54 -06:00
wlr-randr
kanshi
2024-02-13 12:20:54 -06:00
lock
2024-01-23 19:13:42 -06:00
brightnessctl
2024-01-26 00:10:03 -06:00
udiskie
2024-02-20 13:11:57 -06:00
eww-wayland
2024-01-23 15:50:42 -06:00
2024-01-23 19:13:42 -06:00
# notifications
libnotify
dunst
2024-01-23 11:51:13 -06:00
2024-02-20 13:11:57 -06:00
# utils
2024-02-05 09:18:09 -06:00
grimblast
2024-02-20 13:11:57 -06:00
wl-clipboard
2024-01-23 19:13:42 -06:00
rofi-wayland
pavucontrol
2024-02-06 14:58:05 -06:00
2024-02-20 13:11:57 -06:00
catppuccin-cursors.mochaDark
hyprpaper
2024-01-23 19:13:42 -06:00
];
2024-02-06 14:58:05 -06:00
2024-02-02 16:38:56 -06:00
nixpkgs.overlays = [
2024-02-05 09:18:09 -06:00
inputs.hyprland-contrib.overlays.default
2024-02-02 16:38:56 -06:00
inputs.nixpkgs-wayland.overlay
inputs.hyprland.overlays.default
];
2024-01-23 19:13:42 -06:00
};
2024-01-23 11:51:13 -06:00
}