From c3df72be4d804ab103e1ae2559ff11ff8382256e Mon Sep 17 00:00:00 2001 From: insert Date: Sun, 19 May 2024 23:17:21 -0400 Subject: [PATCH] actually do hyprland properly --- configuration.nix | 5 +++++ flake.nix | 4 ++-- special/insertpclinux.nix | 6 ++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index 41221ea..5041834 100644 --- a/configuration.nix +++ b/configuration.nix @@ -293,6 +293,11 @@ #xdg.portal = { enable = true; extraPortals = [ inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland ]; }; #xdg.portal = { enable = true; }; + nix.settings = { + substituters = ["https://hyprland.cachix.org"]; + trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="]; + }; + programs.hyprland = { enable = true; #enableNvidiaPatches = true; diff --git a/flake.nix b/flake.nix index c5df7d8..c5a93ce 100644 --- a/flake.nix +++ b/flake.nix @@ -4,8 +4,8 @@ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; flatpaks.url = "github:GermanBread/declarative-flatpak/dev"; flatpaks.inputs.nixpkgs.follows = "nixpkgs"; - hyprland.url = "github:hyprwm/Hyprland"; - hyprland.inputs.nixpkgs.follows = "nixpkgs"; + hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1"; + #hyprland.inputs.nixpkgs.follows = "nixpkgs"; agenix.url = "github:ryantm/agenix"; agenix.inputs.nixpkgs.follows = "nixpkgs"; home-manager = { diff --git a/special/insertpclinux.nix b/special/insertpclinux.nix index e78e9ab..35b8981 100644 --- a/special/insertpclinux.nix +++ b/special/insertpclinux.nix @@ -122,7 +122,13 @@ source=~/.config/hypr/frappe.conf # source = ~/.config/hypr/myColors.conf # Some default env vars. +env = LIBVA_DRIVER_NAME,nvidia +env = XDG_SESSION_TYPE,wayland +env = GBM_BACKEND,nvidia-drm +env = __GLX_VENDOR_LIBRARY_NAME,nvidia env = WLR_NO_HARDWARE_CURSORS,1 +env = NO_HARDWARE_CURSORS,true +env = ELECTRON_OZONE_PLATFORM_HINT,auto env = NIXOS_OZONE_WL,1 env = KUBECONFIG,/home/insert/Desktop/k3s.yaml env = QT_QPA_PLATFORMTHEME,qt5ct