feat: use hyprland flake

This commit is contained in:
Nickolaj Jepsen 2025-02-24 09:56:16 +01:00
parent 69a11db7bc
commit e742d818c7
5 changed files with 539 additions and 83 deletions

View file

@ -1,6 +1,7 @@
{
lib,
config,
inputs,
pkgs,
...
}:
@ -11,6 +12,13 @@ with lib; let
then (builtins.elemAt config.monitors 0).name
else "";
hyprPkgs = {
hyprland = inputs.hyprland.packages.${pkgs.system}.hyprland;
xdg-desktop-portal-hyprland = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
mesa = inputs.hyprland.inputs.nixpkgs.legacyPackages.${pkgs.system}.mesa.drivers;
mesa32 = inputs.hyprland.inputs.nixpkgs.legacyPackages.${pkgs.system}.pkgsi686Linux.mesa.drivers;
};
record_script = pkgs.writeShellScriptBin "record_script" ''
DIR="$HOME/recordings"
FILE="$DIR/$(date '+%Y-%m-%d_%H.%M.%S').mp4"
@ -56,6 +64,8 @@ in {
config = {
programs.uwsm.enable = true;
programs.hyprland = {
package = hyprPkgs.hyprland;
portalPackage = hyprPkgs.xdg-desktop-portal-hyprland;
enable = true;
withUWSM = true;
xwayland.enable = true;
@ -68,6 +78,8 @@ in {
hardware = {
graphics = {
enable = true;
package = hyprPkgs.mesa;
package32 = hyprPkgs.mesa32;
};
};