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 # Enable networking
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
nix.settings = { nix = {
# auto optimise every so often settings = {
auto-optimise-store = true; # auto optimise every so often
experimental-features = ["nix-command" "flakes"]; auto-optimise-store = true;
experimental-features = ["nix-command" "flakes"];
};
gc.automatic = true;
}; };
# Set your time zone. # Set your time zone.
time.timeZone = "Europe/Amsterdam"; 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.config.allowUnfree = true;
nixpkgs.overlays = [
(import ./electron-wayland.nix)
];
# The home.packages option allows you to install Nix packages into your # The home.packages option allows you to install Nix packages into your
# environment. # environment.
home.packages = with pkgs; [ home.packages = with pkgs; [
@ -428,7 +424,7 @@
"v" "v"
]; ];
key = "<leader>d"; key = "<leader>d";
action = "[[\"_d]]"; action = ''[["_d]]'';
options.desc = "Delete no without copying"; options.desc = "Delete no without copying";
} }
{ {
@ -437,13 +433,13 @@
"v" "v"
]; ];
key = "<leader>y"; key = "<leader>y";
action = "[[\"+y]]"; action = ''[["+y]]'';
options.desc = "Copy to system clipboard"; options.desc = "Copy to system clipboard";
} }
{ {
mode = "n"; mode = "n";
key = "<leader>Y"; key = "<leader>Y";
action = "[[\"+Y]]"; action = ''[["+Y]]'';
# TODO find out what this remap does # TODO find out what this remap does
options.desc = "IDK"; options.desc = "IDK";
} }