Fixed hyprland not launching on latest nixpkgs version on mac

This commit is contained in:
Aleksandr Lebedev 2024-12-28 13:45:47 +01:00
parent af883624f5
commit 89f6e2224a
5 changed files with 29 additions and 25 deletions

36
flake.lock generated
View file

@ -413,11 +413,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1735053786, "lastModified": 1735381016,
"narHash": "sha256-Gm+0DcbUS338vvkwyYWms5jsWlx8z8MeQBzcnIDuIkw=", "narHash": "sha256-CyCZFhMUkuYbSD6bxB/r43EdmDE7hYeZZPTCv0GudO4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "35b98d20ca8f4ca1f6a2c30b8a2c8bb305a36d84", "rev": "10e99c43cdf4a0713b4e81d90691d22c6a58bdf2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -542,11 +542,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1735318145, "lastModified": 1735336272,
"narHash": "sha256-TBtdzTTdlYLX+KJ3tQw1JQeJ4q8xGzzVD+BGn8YvaWQ=", "narHash": "sha256-kPRvGB80n5Nmqw17z+im4+ssDFGOfQSnP2LKQNdprBs=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "Hyprland", "repo": "Hyprland",
"rev": "534adad6b1940fcf0929a59be62dc78e5effaccc", "rev": "c600e1aaff293303c8256aca7d2889fc4289e8c2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -650,11 +650,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1734796073, "lastModified": 1735316583,
"narHash": "sha256-TnuKsa8OHrSJEmHm3TLGOWbPNA1gRjmZLsRzKrCqOsg=", "narHash": "sha256-AiiUwHWHfEdpFzXy7l1x3zInCUa1xcRMrbZ1XRSkzwU=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprutils", "repo": "hyprutils",
"rev": "c3331116ebd0b71df5ae8c6efe9a7f94148b03bf", "rev": "8f15d45b120b33712f6db477fe5ffb18034d0ea8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -833,11 +833,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1734649271, "lastModified": 1735291276,
"narHash": "sha256-4EVBRhOjMDuGtMaofAIqzJbg4Ql7Ai0PSeuVZTHjyKQ=", "narHash": "sha256-NYVcA06+blsLG6wpAbSPTCyLvxD/92Hy4vlY9WxFI1M=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d70bd19e0a38ad4790d3913bf08fcbfc9eeca507", "rev": "634fd46801442d760e09493a794c4f15db2d0cbb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -865,11 +865,11 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1734424634, "lastModified": 1735291276,
"narHash": "sha256-cHar1vqHOOyC7f1+tVycPoWTfKIaqkoe1Q6TnKzuti4=", "narHash": "sha256-NYVcA06+blsLG6wpAbSPTCyLvxD/92Hy4vlY9WxFI1M=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d3c42f187194c26d9f0309a8ecc469d6c878ce33", "rev": "634fd46801442d760e09493a794c4f15db2d0cbb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -926,11 +926,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1735331663, "lastModified": 1735378670,
"narHash": "sha256-iku/Rn9blbz0LCLq0MvB8ezuB4FCtep9hjP9QzGTt/4=", "narHash": "sha256-A8aQA+YhJfA8mUpzXOZdlXNnKiZg2EcpCn1srgtBjTs=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "60e88b870c8477bcb043792025eca4c9bb4974e3", "rev": "f4b0b81ef9eb4e37e75f32caf1f02d5501594811",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -66,6 +66,7 @@
pkgs = import nixpkgs { pkgs = import nixpkgs {
system = x86; system = x86;
overlays = [ overlays = [
inputs.hyprland.overlays.default
]; ];
config = { config = {
allowBroken = true; allowBroken = true;
@ -93,6 +94,7 @@ pkgs = import nixpkgs {
pkgs = import nixpkgs { pkgs = import nixpkgs {
system = arm; system = arm;
overlays = [ overlays = [
inputs.hyprland.overlays.default
#(import ./nixos/macos/widevine.nix) #(import ./nixos/macos/widevine.nix)
]; ];
config = { config = {

View file

@ -7,7 +7,6 @@
imports = imports =
[ [
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
inputs.home-manager.nixosModules.default
inputs.stylix.nixosModules.stylix inputs.stylix.nixosModules.stylix
inputs.nixos-facter-modules.nixosModules.facter inputs.nixos-facter-modules.nixosModules.facter
inputs.home-manager.nixosModules.default inputs.home-manager.nixosModules.default
@ -277,6 +276,8 @@
}; };
home-manager = { home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit pkgs; inherit hwconfig; inherit first-nixos-install; inherit inputs;}; extraSpecialArgs = {inherit pkgs; inherit hwconfig; inherit first-nixos-install; inherit inputs;};
}; };
stylix = { stylix = {

View file

@ -21,7 +21,10 @@ in
# powertop.enable = true; # powertop.enable = true;
#}; #};
#hardware.graphics.enable32Bit = lib.mkForce false; #hardware.graphics.enable32Bit = lib.mkForce false;
environment.systemPackages = with pkgs; [mesa mesa.drivers environment.systemPackages = with pkgs; [
#mesa
#mesa.drivers
mesa-asahi-edge
#widevine-cdm #widevine-cdm
#widevinecdm-aarch64 #widevinecdm-aarch64
]; ];

View file

@ -85,7 +85,7 @@
}; };
}; };
configPackages = with pkgs; [ configPackages = with pkgs; [
inputs.hyprland.packages.${hwconfig.system}.xdg-desktop-portal-hyprland xdg-desktop-portal-hyprland
kdePackages.xdg-desktop-portal-kde kdePackages.xdg-desktop-portal-kde
]; ];
}; };
@ -100,8 +100,6 @@
programs.hyprland = { programs.hyprland = {
enable = true; enable = true;
package = inputs.hyprland.packages."${hwconfig.system}".hyprland;
portalPackage = inputs.hyprland.packages.${hwconfig.system}.xdg-desktop-portal-hyprland;
xwayland.enable = true; xwayland.enable = true;
systemd.setPath.enable = true; systemd.setPath.enable = true;
}; };