2024-05-28 00:51:17 +05:30
|
|
|
{ inputs, pkgs, lib, ... }: let
|
|
|
|
pkgs-hyprland = inputs.hyprland.inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
|
|
|
in
|
2023-08-12 02:20:41 +05:30
|
|
|
{
|
|
|
|
# Import wayland config
|
|
|
|
imports = [ ./wayland.nix
|
|
|
|
./pipewire.nix
|
|
|
|
./dbus.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
# Security
|
|
|
|
security = {
|
2023-12-22 07:56:08 +05:30
|
|
|
pam.services.swaylock = {
|
|
|
|
text = ''
|
|
|
|
auth include login
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
# pam.services.gtklock = {};
|
2023-08-25 03:41:19 +05:30
|
|
|
pam.services.login.enableGnomeKeyring = true;
|
2023-08-12 02:20:41 +05:30
|
|
|
};
|
|
|
|
|
2023-08-25 03:41:19 +05:30
|
|
|
services.gnome.gnome-keyring.enable = true;
|
|
|
|
|
2023-08-12 02:20:41 +05:30
|
|
|
programs = {
|
|
|
|
hyprland = {
|
|
|
|
enable = true;
|
2024-05-11 07:23:22 +05:30
|
|
|
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
2023-08-12 02:20:41 +05:30
|
|
|
xwayland = {
|
|
|
|
enable = true;
|
|
|
|
};
|
2023-09-24 02:11:42 +05:30
|
|
|
portalPackage = pkgs.xdg-desktop-portal-hyprland;
|
2023-08-12 02:20:41 +05:30
|
|
|
};
|
|
|
|
};
|
2024-05-28 00:51:17 +05:30
|
|
|
|
|
|
|
# fixes opengl/mesa version mismatch
|
|
|
|
hardware.opengl = {
|
|
|
|
package = pkgs-hyprland.mesa.drivers;
|
|
|
|
|
|
|
|
# if you also want 32-bit support (e.g for Steam)
|
|
|
|
driSupport32Bit = true;
|
|
|
|
package32 = pkgs-hyprland.pkgsi686Linux.mesa.drivers;
|
|
|
|
};
|
|
|
|
services.xserver.displayManager.sddm.package = lib.mkForce pkgs-hyprland.sddm;
|
2023-08-12 02:20:41 +05:30
|
|
|
}
|