Skip to content

Commit

Permalink
fix(nvidia): Bump sway to unstable to prevent flickering
Browse files Browse the repository at this point in the history
Seems the flickering was *way* worse with the 4060ti.
  • Loading branch information
TLATER committed Aug 30, 2024
1 parent 4aa9080 commit 862f28a
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 1 deletion.
17 changes: 17 additions & 0 deletions flake.lock

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

1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
inputs = {
# NixOS related inputs
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";

nixos-hardware.url = "github:NixOS/nixos-hardware/master";
sops-nix = {
Expand Down
39 changes: 38 additions & 1 deletion nixos-config/hosts/yui/nvidia/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{ config, lib, ... }:
{ pkgs, flake-inputs, config, lib, ... }:
let
unstable = flake-inputs.nixpkgs-unstable.legacyPackages.${pkgs.system};
in
{
imports = [ ./vaapi.nix ];

Expand Down Expand Up @@ -26,6 +29,40 @@
};
};

nixpkgs.overlays = [
(final: prev: {
sway-unwrapped = unstable.sway-unwrapped.overrideAttrs (attrs: {
version = "0-unstable-2024-08-28";
src = final.fetchFromGitHub {
owner = "swaywm";
repo = "sway";
rev = "980a4e02113789d0cca94aa023557c6f6e87ec73";
hash = "sha256-qciZeQghlLV5aMuOnex3LvFU9vTa941RMlUkdvj0QTU=";
};
buildInputs = attrs.buildInputs ++ [ final.wlroots ];
mesonFlags =
let
inherit (lib.strings) mesonEnable mesonOption;
in
[
(mesonOption "sd-bus-provider" "libsystemd")
(mesonEnable "tray" attrs.trayEnabled)
];
});

wlroots = unstable.wlroots.overrideAttrs (_attrs: {
version = "0-unstable-2024-08-29";
src = final.fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "wlroots";
repo = "wlroots";
rev = "beb9a9ad0a38867154b7606911c33ffa5ecf759f";
hash = "sha256-ZlNFxwj3c5zKiSfokA27zhJ+Yar8cma4fj6N/ulI0VM=";
};
});
})
];

boot = {
kernelParams = [
"nvidia-drm.fbdev=1"
Expand Down

0 comments on commit 862f28a

Please sign in to comment.