25 lines
603 B
Nix
25 lines
603 B
Nix
{ 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";
|
|
|
|
environment.systemPackages = [ pkgs.unstable.waylock ];
|
|
security.pam.services.waylock .text = ''
|
|
auth required pam_unix.so try_first_pass nullok
|
|
auth optional pam_permit.so
|
|
'';
|
|
};
|
|
}
|