Skip to content

Commit

Permalink
feat: cleanup hyprland
Browse files Browse the repository at this point in the history
  • Loading branch information
sioodmy committed Nov 8, 2022
1 parent 4d6bb33 commit d51c464
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 37 deletions.
30 changes: 15 additions & 15 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 15 additions & 3 deletions home/hyprland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,23 @@ in {
pngquant
];

# xdg.configFile."hypr/hyprland.conf".source = ./hyprland.conf;
# systemd.user.services.swayidle.Install.WantedBy = lib.mkForce ["hyprland-session.target"];

wayland.windowManager.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.default.override {
nvidiaPatches = true;
wlroots =
inputs.hyprland.packages.${pkgs.system}.wlroots-hyprland.overrideAttrs
(old: {
patches =
(old.patches or [])
++ [
(pkgs.fetchpatch {
url = "https://aur.archlinux.org/cgit/aur.git/plain/0001-nvidia-format-workaround.patch?h=hyprland-nvidia-screenshare-git";
sha256 = "A9f1p5EW++mGCaNq8w7ZJfeWmvTfUm4iO+1KDcnqYX8=";
})
];
});
};
systemdIntegration = true;
extraConfig = builtins.readFile ./hyprland.conf;
};
Expand Down
19 changes: 0 additions & 19 deletions system/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -108,25 +108,6 @@ in {

programs = {
ccache.enable = true;
hyprland = {
enable = true;
# credits to IceDBorn and fufexan for this patch <3
package = inputs.hyprland.packages.${pkgs.system}.default.override {
nvidiaPatches = true;
wlroots =
inputs.hyprland.packages.${pkgs.system}.wlroots-hyprland.overrideAttrs
(old: {
patches =
(old.patches or [])
++ [
(pkgs.fetchpatch {
url = "https://aur.archlinux.org/cgit/aur.git/plain/0001-nvidia-format-workaround.patch?h=hyprland-nvidia-screenshare-git";
sha256 = "A9f1p5EW++mGCaNq8w7ZJfeWmvTfUm4iO+1KDcnqYX8=";
})
];
});
};
};
};

environment.etc."greetd/environments".text = ''
Expand Down

0 comments on commit d51c464

Please sign in to comment.