updates, and maybe working discord

This commit is contained in:
Noa Aarts 2024-02-29 16:08:27 +01:00
parent afd8319ac7
commit c87350f6a7
5 changed files with 146 additions and 102 deletions

18
flake.lock generated
View file

@ -98,11 +98,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1708988456, "lastModified": 1709204054,
"narHash": "sha256-RCz7Xe64tN2zgWk+MVHkzg224znwqknJ1RnB7rVqUWw=", "narHash": "sha256-U1idK0JHs1XOfSI1APYuXi4AEADf+B+ZU4Wifc0pBHk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "1d085ea4444d26aa52297758b333b449b2aa6fca", "rev": "2f3367769a93b226c467551315e9e270c3f78b15",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -155,11 +155,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1708984720, "lastModified": 1709150264,
"narHash": "sha256-gJctErLbXx4QZBBbGp78PxtOOzsDaQ+yw1ylNQBuSUY=", "narHash": "sha256-HofykKuisObPUfj0E9CJVfaMhawXkYx3G8UIFR/XQ38=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "13aff9b34cc32e59d35c62ac9356e4a41198a538", "rev": "9099616b93301d5cf84274b184a3a5ec69e94e08",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -181,11 +181,11 @@
"pre-commit-hooks": "pre-commit-hooks" "pre-commit-hooks": "pre-commit-hooks"
}, },
"locked": { "locked": {
"lastModified": 1709118025, "lastModified": 1709155917,
"narHash": "sha256-IwzgIAKHJI+qcno0pExTOfhqKgHzA5vc++gfgJ0ZCok=", "narHash": "sha256-S4yHqDKFmJpFQExP7bkOSw+RQaSr8pdOrfSFCOv3G70=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "8bb460e261dd0fd8ac3f544f8a2a28ad64616cbe", "rev": "be87309e0c1da19d99d969625300aaed36ff1b91",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -0,0 +1,24 @@
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,6 +21,10 @@
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; [
@ -32,18 +36,22 @@
mtr mtr
firefox firefox
(writeShellScriptBin "spotify" '' # (writeShellScriptBin "spotify" ''
exec ${pkgs.spotify}/bin/spotify --enable-features=UseOzonePlatform --ozone-platform=wayland # exec ${pkgs.spotify}/bin/spotify --enable-features=UseOzonePlatform --ozone-platform=wayland
'') # '')
spotify
hyprland hyprland
dunst dunst
waybar waybar
wl-clipboard wl-clipboard
(writeShellScriptBin "discord" '' dconf
exec ${discord}/bin/discord --enable-features=UseOzonePlatform --ozone-platform=wayland
'') # (writeShellScriptBin "discord" ''
# exec ${discord}/bin/discord --enable-features=UseOzonePlatform --ozone-platform=wayland
# '')
discord
kitty kitty
pipewire pipewire
lsd lsd
@ -124,6 +132,15 @@
xdg.userDirs.enable = true; xdg.userDirs.enable = true;
xdg.userDirs.createDirectories = true; xdg.userDirs.createDirectories = true;
dconf = {
enable = true;
settings = {
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
};
};
};
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; programs.home-manager.enable = true;
@ -142,7 +159,7 @@
#window { #window {
margin: 10px; margin: 10px;
border: none; border: none;
background-color: transparent; background-color: #530035;
border-radius: 10px; border-radius: 10px;
font-family: font-family:
JetBrains Mono NF, JetBrains Mono NF,

3
update.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
echo "hewwo"