ozone discord

This commit is contained in:
Noa Aarts 2024-02-29 23:48:45 +01:00
parent c87350f6a7
commit d0af942359
3 changed files with 11 additions and 35 deletions

View file

@ -26,11 +26,15 @@
# Enable networking
networking.networkmanager.enable = true;
nix.settings = {
# auto optimise every so often
auto-optimise-store = true;
experimental-features = ["nix-command" "flakes"];
nix = {
settings = {
# auto optimise every so often
auto-optimise-store = true;
experimental-features = ["nix-command" "flakes"];
};
gc.automatic = true;
};
# Set your time zone.
time.timeZone = "Europe/Amsterdam";

View file

@ -1,24 +0,0 @@
self:
let
enableWayland = drv: bin: drv.overrideAttrs (
old: {
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ self.makeWrapper ];
postFixup = (old.postFixup or "") + ''
wrapProgram $out/bin/${bin} \
--add-flags "--enable-features=UseOzonePlatform" \
--add-flags "--ozone-platform=wayland"
'';
}
);
in
super:
{
slack = enableWayland super.slack "slack";
discord = enableWayland super.discord "discord";
vscode = enableWayland super.vscode "code";
google-chrome-beta = (
super.google-chrome-beta.override {
commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland";
}
);
}

View file

@ -21,10 +21,6 @@
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [
(import ./electron-wayland.nix)
];
# The home.packages option allows you to install Nix packages into your
# environment.
home.packages = with pkgs; [
@ -428,7 +424,7 @@
"v"
];
key = "<leader>d";
action = "[[\"_d]]";
action = ''[["_d]]'';
options.desc = "Delete no without copying";
}
{
@ -437,13 +433,13 @@
"v"
];
key = "<leader>y";
action = "[[\"+y]]";
action = ''[["+y]]'';
options.desc = "Copy to system clipboard";
}
{
mode = "n";
key = "<leader>Y";
action = "[[\"+Y]]";
action = ''[["+Y]]'';
# TODO find out what this remap does
options.desc = "IDK";
}