updates, and maybe working discord
This commit is contained in:
parent
afd8319ac7
commit
c87350f6a7
5 changed files with 146 additions and 102 deletions
18
flake.lock
generated
18
flake.lock
generated
|
|
@ -98,11 +98,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1708988456,
|
||||
"narHash": "sha256-RCz7Xe64tN2zgWk+MVHkzg224znwqknJ1RnB7rVqUWw=",
|
||||
"lastModified": 1709204054,
|
||||
"narHash": "sha256-U1idK0JHs1XOfSI1APYuXi4AEADf+B+ZU4Wifc0pBHk=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "1d085ea4444d26aa52297758b333b449b2aa6fca",
|
||||
"rev": "2f3367769a93b226c467551315e9e270c3f78b15",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -155,11 +155,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1708984720,
|
||||
"narHash": "sha256-gJctErLbXx4QZBBbGp78PxtOOzsDaQ+yw1ylNQBuSUY=",
|
||||
"lastModified": 1709150264,
|
||||
"narHash": "sha256-HofykKuisObPUfj0E9CJVfaMhawXkYx3G8UIFR/XQ38=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "13aff9b34cc32e59d35c62ac9356e4a41198a538",
|
||||
"rev": "9099616b93301d5cf84274b184a3a5ec69e94e08",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
@ -181,11 +181,11 @@
|
|||
"pre-commit-hooks": "pre-commit-hooks"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1709118025,
|
||||
"narHash": "sha256-IwzgIAKHJI+qcno0pExTOfhqKgHzA5vc++gfgJ0ZCok=",
|
||||
"lastModified": 1709155917,
|
||||
"narHash": "sha256-S4yHqDKFmJpFQExP7bkOSw+RQaSr8pdOrfSFCOv3G70=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixvim",
|
||||
"rev": "8bb460e261dd0fd8ac3f544f8a2a28ad64616cbe",
|
||||
"rev": "be87309e0c1da19d99d969625300aaed36ff1b91",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
|||
24
hosts/default/electron-wayland.nix
Normal file
24
hosts/default/electron-wayland.nix
Normal 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";
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
@ -21,6 +21,10 @@
|
|||
|
||||
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; [
|
||||
|
|
@ -32,18 +36,22 @@
|
|||
mtr
|
||||
|
||||
firefox
|
||||
(writeShellScriptBin "spotify" ''
|
||||
exec ${pkgs.spotify}/bin/spotify --enable-features=UseOzonePlatform --ozone-platform=wayland
|
||||
'')
|
||||
# (writeShellScriptBin "spotify" ''
|
||||
# exec ${pkgs.spotify}/bin/spotify --enable-features=UseOzonePlatform --ozone-platform=wayland
|
||||
# '')
|
||||
spotify
|
||||
|
||||
hyprland
|
||||
dunst
|
||||
waybar
|
||||
wl-clipboard
|
||||
|
||||
(writeShellScriptBin "discord" ''
|
||||
exec ${discord}/bin/discord --enable-features=UseOzonePlatform --ozone-platform=wayland
|
||||
'')
|
||||
dconf
|
||||
|
||||
# (writeShellScriptBin "discord" ''
|
||||
# exec ${discord}/bin/discord --enable-features=UseOzonePlatform --ozone-platform=wayland
|
||||
# '')
|
||||
discord
|
||||
kitty
|
||||
pipewire
|
||||
lsd
|
||||
|
|
@ -124,6 +132,15 @@
|
|||
xdg.userDirs.enable = true;
|
||||
xdg.userDirs.createDirectories = true;
|
||||
|
||||
dconf = {
|
||||
enable = true;
|
||||
settings = {
|
||||
"org/gnome/desktop/interface" = {
|
||||
color-scheme = "prefer-dark";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
|
|
@ -142,7 +159,7 @@
|
|||
#window {
|
||||
margin: 10px;
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
background-color: #530035;
|
||||
border-radius: 10px;
|
||||
font-family:
|
||||
JetBrains Mono NF,
|
||||
|
|
|
|||
3
update.sh
Executable file
3
update.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "hewwo"
|
||||
Loading…
Add table
Add a link
Reference in a new issue