overlays: add wf-recorder ffmpeg fix, remove sway,

graphical: hardware.opengl renamed to hardware.graphics
This commit is contained in:
teutat3s 2024-11-05 15:31:42 +01:00
parent 35caff9c1e
commit c95e0680e6
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
4 changed files with 14 additions and 30 deletions

View file

@ -26,7 +26,7 @@ in
};
config = {
hardware.opengl.enable = true;
hardware.graphics.enable = true;
environment = {
systemPackages = with pkgs; [

View file

@ -36,8 +36,8 @@
(import ./mdbook-multilang.nix inputs)
(import ./nix-index.nix)
(import ./prr.nix)
(import ./sway.nix inputs)
(import ./neovim-plugins.nix)
(import ./wf-recorder.nix)
];
}
);

View file

@ -1,28 +0,0 @@
inputs: final: prev:
let
unstable = import inputs.unstable {
system = prev.system;
};
in
{
sway-unwrapped =
(unstable.sway-unwrapped.override { wlroots = unstable.wlroots_0_18; }).overrideAttrs
(
finalAttrs: prevAttrs: {
version = "1.10";
src = prevAttrs.src.override {
hash = "sha256-PzeU/niUdqI6sf2TCG19G2vNgAZJE5JCyoTwtO9uFTk=";
};
mesonFlags =
let
inherit (final.lib.strings) mesonEnable mesonOption;
sd-bus-provider = if finalAttrs.systemdSupport then "libsystemd" else "basu";
in
[
(mesonOption "sd-bus-provider" sd-bus-provider)
(mesonEnable "tray" finalAttrs.trayEnabled)
];
}
);
}

12
overlays/wf-recorder.nix Normal file
View file

@ -0,0 +1,12 @@
final: prev: {
wf-recorder = prev.wf-recorder.overrideAttrs (oldAttrs: rec {
inherit (oldAttrs) pname;
src = prev.fetchFromGitHub {
owner = "ammen99";
repo = pname;
rev = "560bb92d3ddaeb31d7af77d22d01b0050b45bebe";
hash = "sha256-goWNRg286Cp6UUqyJyqk7UysumMCt9GtNpF7O5ahKtI=";
};
version = "unstable-2024-11-05";
});
}