mirror of
https://github.com/zoriya/flake.git
synced 2026-06-02 10:45:59 +00:00
Make discord run on wayland
This commit is contained in:
Generated
+12
-12
@@ -39,11 +39,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1683276747,
|
||||
"narHash": "sha256-T3st1VBg3wmhHyBQb0z12sTSGsQgiu3mxkS61nLO8Xs=",
|
||||
"lastModified": 1684157850,
|
||||
"narHash": "sha256-xGHTCgvAxO5CgAL6IAgE/VGRX2wob2Y+DPyqpXJ32oQ=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "669669fcb403e3137dfe599bbcc26e60502c3543",
|
||||
"rev": "c0deab0effd576e70343cb5df0c64428e0e0d010",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -54,11 +54,11 @@
|
||||
},
|
||||
"impermanence": {
|
||||
"locked": {
|
||||
"lastModified": 1682268411,
|
||||
"narHash": "sha256-ICDKQ7tournRVtfM8C2II0qHiOZOH1b3dXVOCsgr11o=",
|
||||
"lastModified": 1684144492,
|
||||
"narHash": "sha256-5TBG9kZGdKrZGHdyjLA04ODSzhx1Bx/vwMxfRgWF+JU=",
|
||||
"owner": "nix-community",
|
||||
"repo": "impermanence",
|
||||
"rev": "df1692e2d9f1efc4300b1ea9201831730e0b817d",
|
||||
"rev": "ec1a8e70d61261f9ada30f4e450ea7230d9efb62",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -104,11 +104,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1683286087,
|
||||
"narHash": "sha256-xseOd7W7xwF5GOF2RW8qhjmVGrKoBz+caBlreaNzoeI=",
|
||||
"lastModified": 1684049129,
|
||||
"narHash": "sha256-7WB9LpnPNAS8oI7hMoHeKLNhRX7k3CI9uWBRSfmOCCE=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "3e313808bd2e0a0669430787fb22e43b2f4bf8bf",
|
||||
"rev": "0470f36b02ef01d4f43c641bbf07020bcab71bf1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -151,11 +151,11 @@
|
||||
},
|
||||
"nur": {
|
||||
"locked": {
|
||||
"lastModified": 1683432572,
|
||||
"narHash": "sha256-GPi990XR/OvHghGj2nZaxp/7m4LxTjlYuD77FsGjCrQ=",
|
||||
"lastModified": 1684165476,
|
||||
"narHash": "sha256-D0ek1aBXXscnKm5w9aCzBHejHeufD3XocmUphx0kCbI=",
|
||||
"owner": "nix-community",
|
||||
"repo": "NUR",
|
||||
"rev": "2305adfd63c885defb4d8c81e1e813d1a7e83331",
|
||||
"rev": "e724514d54b0a97e9a754815398ef79a397fd158",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
+11
-1
@@ -32,6 +32,15 @@ in {
|
||||
welcome-dialog-last-shown-version = 999999;
|
||||
};
|
||||
|
||||
"org/gnome/desktop/session" = {
|
||||
idle-delay = mkUint32 900;
|
||||
};
|
||||
|
||||
"org/gnome/settings-daemon/plugins/power" = {
|
||||
sleep-inactive-battery-timeout = 1800;
|
||||
sleep-inactive-ac-timeout = 1800;
|
||||
};
|
||||
|
||||
"org/gnome/desktop/sound" = {
|
||||
allow-volume-above-100-percent = true;
|
||||
};
|
||||
@@ -185,7 +194,7 @@ in {
|
||||
keep-search-entry = false;
|
||||
show-indicator = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs.gnomeExtensions; [
|
||||
forge
|
||||
@@ -210,4 +219,5 @@ in {
|
||||
# OnlyShowIn=GNOME;
|
||||
# '';
|
||||
xdg.configFile."autostart/discord.desktop".text = pkgs.discord.desktopItem.text;
|
||||
# xdg.configFile."autostart/youtube-music.desktop".text = pkgs.youtube-music.desktopItem.text;
|
||||
}
|
||||
|
||||
@@ -33,6 +33,9 @@ in {
|
||||
libreoffice
|
||||
qbittorrent
|
||||
xdg-utils
|
||||
youtube-music
|
||||
wl-clipboard
|
||||
alsa-utils
|
||||
];
|
||||
|
||||
programs.kitty = {
|
||||
@@ -51,6 +54,7 @@ in {
|
||||
inactive_tab_background = "#${base01}";
|
||||
inactive_tab_foreground = "#${base04}";
|
||||
tab_bar_background = "#${base01}";
|
||||
hide_window_decorations = "yes";
|
||||
|
||||
enable_audio_bell = false;
|
||||
cursor_blink_interval = 0;
|
||||
|
||||
@@ -183,7 +183,7 @@ return {
|
||||
c = { "clangd" },
|
||||
cpp = { "clangd" },
|
||||
pyright = { "pyright" },
|
||||
nix = { "nixls" },
|
||||
nix = { "nil_ls" },
|
||||
typescript = { "tsserver" },
|
||||
javascript = { "tsserver" },
|
||||
jsx = { "tsserver" },
|
||||
|
||||
@@ -31,6 +31,8 @@ in {
|
||||
usbutils
|
||||
pciutils
|
||||
sshfs-fuse
|
||||
zip
|
||||
nodePackages.http-server
|
||||
];
|
||||
|
||||
programs.atuin = {
|
||||
|
||||
@@ -35,6 +35,7 @@ in {
|
||||
"/var/lib/bluetooth"
|
||||
"/var/lib/systemd/coredump"
|
||||
"/var/lib/docker"
|
||||
"/var/lib/waydroid"
|
||||
"/var/lib/flatpak"
|
||||
"/etc/NetworkManager/system-connections"
|
||||
];
|
||||
@@ -50,6 +51,7 @@ in {
|
||||
{ directory = ".ssh"; mode = "0700"; }
|
||||
".local/share/direnv"
|
||||
".local/share/flatpak"
|
||||
".local/share/waydroid"
|
||||
".var"
|
||||
".cache/flatpak"
|
||||
".local/share/atuin"
|
||||
@@ -57,6 +59,7 @@ in {
|
||||
".mozilla"
|
||||
".config/google-chrome"
|
||||
".config/discord"
|
||||
".config/YouTube\ Music"
|
||||
# Don't reinstall plugins on reboot
|
||||
".local/share/nvim"
|
||||
".local/state/nvim"
|
||||
|
||||
+19
-3
@@ -1,3 +1,19 @@
|
||||
self: super: {
|
||||
tuxedo-keyboard = super.callPackage ./tuxedo-keyboard {};
|
||||
}
|
||||
self: super:
|
||||
let
|
||||
enableWayland = drv: bins: drv.overrideAttrs (
|
||||
old: {
|
||||
nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ self.makeWrapper ];
|
||||
postFixup = map (bin: (old.postFixup or "") + ''
|
||||
wrapProgram $out/bin/${bin} \
|
||||
--add-flags "--enable-features=UseOzonePlatform" \
|
||||
--add-flags "--ozone-platform=wayland"
|
||||
'') bins;
|
||||
}
|
||||
);
|
||||
in {
|
||||
tuxedo-keyboard = super.callPackage ./tuxedo-keyboard {};
|
||||
slack = enableWayland super.slack ["slack"];
|
||||
discord = enableWayland super.discord ["discord" "Discord"];
|
||||
youtube-music = enableWayland super.youtube-music ["youtube-music"];
|
||||
vscode = enableWayland super.vscode ["code"];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user