right hyprland package for allegro and add pkgs-unstable to flake

This commit is contained in:
Antoine Vaure 2024-10-21 01:16:56 +02:00 committed by ant
parent 9e882a4bb4
commit 8795542df7
2 changed files with 7 additions and 7 deletions

View file

@ -14,6 +14,7 @@
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = inputs.nixpkgs.legacyPackages.${system}; pkgs = inputs.nixpkgs.legacyPackages.${system};
pkgs-unstable = pkgs;
pkgs-24_05 = inputs.nixpkgs-24_05.legacyPackages.${system}; pkgs-24_05 = inputs.nixpkgs-24_05.legacyPackages.${system};
username = "ant"; username = "ant";
@ -23,11 +24,10 @@
inherit pkgs; inherit pkgs;
extraSpecialArgs = { extraSpecialArgs = {
# configure here inherit pkgs-unstable;
variant = variant; inherit variant;
username = username; inherit username;
inherit pkgs-24_05;
pkgs-24_05 = pkgs-24_05;
}; };
modules = [ modules = [

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, pkgs-24_05, variant, ... }: { { config, lib, pkgs, pkgs-unstable, pkgs-24_05, variant, ... }: {
home.packages = with pkgs; [ xdg-desktop-portal-hyprland ]; home.packages = with pkgs; [ xdg-desktop-portal-hyprland ];
home.sessionVariables = { home.sessionVariables = {
@ -16,7 +16,7 @@
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
package = if variant == "allegro" then pkgs-24_05.hyprland else pkgs.hyprland; package = if variant == "allegro" then pkgs.hyprland else pkgs-unstable.hyprland;
xwayland.enable = true; xwayland.enable = true;