-
-
Save LordMZTE/e71481387602065812017bdbd7fab2cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, ... }: | |
let | |
mzteriver-init = pkgs.writeShellScript "mzteriver-init" '' | |
export PATH="$HOME/.local/bin:$PATH" | |
exec mzteinit cmd mzteriver | |
''; | |
in | |
{ | |
environment.systemPackages = with pkgs; [ | |
river | |
rofi-wayland | |
waybar | |
wlr-randr | |
playerctl | |
grim | |
slurp | |
]; | |
services.xserver.displayManager.sessionPackages = [ | |
(pkgs.writeTextFile | |
{ | |
name = "mzteriver-session"; | |
destination = "/share/wayland-sessions/mzteriver.desktop"; | |
text = '' | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=MZTERiver | |
Comment=MZTERiver River Session | |
Exec=${mzteriver-init} | |
Type=Application | |
''; | |
} // { providedSessions = [ "mzteriver" ]; }) | |
]; | |
xdg.portal = { | |
wlr.enable = true; | |
config.river.default = [ "wlr" "gtk" ]; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment