mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-07 16:47:23 +08:00
41 lines
893 B
Nix
41 lines
893 B
Nix
{ flake, pkgs, ... }:
|
|
|
|
let
|
|
inherit (flake) inputs;
|
|
hyprlandPkgs = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system};
|
|
in
|
|
{
|
|
programs.hyprland = {
|
|
enable = true;
|
|
# set the flake package
|
|
package = hyprlandPkgs.hyprland;
|
|
# make sure to also set the portal package, so that they are in sync
|
|
portalPackage = hyprlandPkgs.xdg-desktop-portal-hyprland;
|
|
};
|
|
|
|
security.pam.services.hyprlock = { };
|
|
|
|
home-manager.sharedModules = [ ./home ];
|
|
|
|
# hint Electron apps to use Wayland
|
|
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
grimblast
|
|
|
|
acpi
|
|
acpilight
|
|
pavucontrol
|
|
|
|
# TODO: https://github.com/nix-community/home-manager/pull/5489
|
|
hyprshade
|
|
hyprshot
|
|
hyprpaper
|
|
playerctl
|
|
|
|
# TODO: https://github.com/nix-community/home-manager/issues/5899
|
|
hyprlock
|
|
|
|
wl-clipboard
|
|
];
|
|
}
|