system/modules/nixos/configs/window-manager/hyprland.nix

26 lines
603 B
Nix
Raw Normal View History

2024-04-22 23:43:16 +03:00
{ config, lib, pkgs, ... }:
let
cfg = config.local.window-manager.hyprland;
in
{
options.local.window-manager.hyprland = with lib; {
enable = mkEnableOption "hyperland window manager";
};
config = lib.mkIf cfg.enable {
programs.hyprland = {
enable = true;
package = pkgs.unstable.hyprland;
};
programs.gnupg.agent.pinentryFlavor = "gtk2";
2024-04-23 12:55:20 +03:00
environment.systemPackages = [ pkgs.unstable.waylock ];
security.pam.services.waylock .text = ''
auth required pam_unix.so try_first_pass nullok
auth optional pam_permit.so
'';
2024-04-22 23:43:16 +03:00
};
}