hyprland: use git version

This commit is contained in:
Alexandre Cavalheiro 2024-08-01 10:53:55 -03:00
parent 205119107f
commit 54924cb131
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
3 changed files with 27 additions and 6 deletions

View file

@ -13,6 +13,8 @@
url = "github:Gerg-L/spicetify-nix"; url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
}; };
outputs = outputs =
@ -22,7 +24,7 @@
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
in in
{ {
nixosConfigurations."nixos" = nixosConfigurations.wizdesk =
let let
specialArgs = inputs; specialArgs = inputs;
modules = [ ./nixos.nix ]; modules = [ ./nixos.nix ];

View file

@ -2,8 +2,16 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }: {
config,
pkgs,
hyprland,
...
}:
let
hyprland-pkgs = hyprland.inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{ {
## ##
## NIXOS ## ## NIXOS ##
@ -39,6 +47,12 @@
nix.optimise.automatic = true; nix.optimise.automatic = true;
nix.settings.auto-optimise-store = true; nix.settings.auto-optimise-store = true;
# Enable Hyprland's cachix
nix.settings.substituters = [ "https://hyprland.cachix.org" ];
nix.settings.trusted-public-keys = [
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
];
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave # on your system were taken. Its perfectly fine and recommended to leave
@ -243,14 +257,15 @@
}; };
# Enable Hyprland # Enable Hyprland
programs.hyprland.enable = true; programs.hyprland = {
enable = true;
package = hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
};
# Enable XDG Desktop Portals. # Enable XDG Desktop Portals.
xdg.portal = { xdg.portal = {
enable = true; enable = true;
extraPortals = with pkgs; [ xdg-desktop-portal-hyprland ];
config = { config = {
common = { common = {
default = [ "hyprland" ]; default = [ "hyprland" ];
@ -269,6 +284,9 @@
enable = true; enable = true;
enable32Bit = true; enable32Bit = true;
package = hyprland-pkgs.mesa.drivers;
package32 = hyprland-pkgs.pkgsi686Linux.mesa.drivers;
extraPackages = with pkgs; [ extraPackages = with pkgs; [
rocm-opencl-icd # OpenGL hwa rocm-opencl-icd # OpenGL hwa
rocm-opencl-runtime rocm-opencl-runtime
@ -319,6 +337,7 @@
# Enable Steam. # Enable Steam.
programs.steam = { programs.steam = {
enable = true; enable = true;
remotePlay.openFirewall = true; remotePlay.openFirewall = true;
localNetworkGameTransfers.openFirewall = true; localNetworkGameTransfers.openFirewall = true;
# ^ Enables so we can transfer games to other computers in the network. # ^ Enables so we can transfer games to other computers in the network.

View file

@ -261,7 +261,7 @@
# Passthrough binds # Passthrough binds
bind = SHIFT CTRL, F12, pass, ^(com.obsproject.Studio)$ bind = SHIFT CTRL, F12, pass, ^(com.obsproject.Studio)$
# Window rules # Window rules for xwaylandvideobridge
windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$ windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$
windowrulev2 = noanim,class:^(xwaylandvideobridge)$ windowrulev2 = noanim,class:^(xwaylandvideobridge)$
windowrulev2 = nofocus,class:^(xwaylandvideobridge)$ windowrulev2 = nofocus,class:^(xwaylandvideobridge)$