add wayvnc

This commit is contained in:
Gabriel Fontes
2021-11-26 21:44:31 -03:00
parent 4bae66f8d8
commit d0341aa9d3
3 changed files with 8 additions and 8 deletions
-1
View File
@@ -21,7 +21,6 @@ in
];
networking.hostName = "atlas";
networking.firewall.allowedTCPPorts = [ 80 ];
environment.persistence."/data" = {
directories = [
@@ -21,7 +21,6 @@
];
home.packages = with pkgs; [
waypipe
dragon-drop
imv
pavucontrol
@@ -1,4 +1,4 @@
{ lib, features, pkgs, config, ... }:
{ lib, features, pkgs, config, hostname, ... }:
let
colorscheme = config.colorscheme;
@@ -36,10 +36,12 @@ let
swayidle = "${pkgs.swayidle}/bin/swayidle";
swaylock = "${pkgs.swaylock-effects}/bin/swaylock";
waybar = "${pkgs.waybar}/bin/waybar";
wayvnc = "${pkgs.wayvnc}/bin/wayvnc";
wofi = "${pkgs.wofi}/bin/wofi";
xrandr = "${pkgs.xorg.xrandr}/bin/xrandr";
zathura = "${pkgs.zathura}/bin/zathura";
in rec {
in
rec {
home.packages = with pkgs; [ wl-clipboard wf-recorder slurp ];
home.sessionVariables = {
MOZ_ENABLE_WAYLAND = true;
@@ -150,12 +152,12 @@ in rec {
{
command = "${waybar}";
}
# Set xwayland main monitor
# Start WayVNC, only on atlas
] ++ (if hostname == "atlas" then [
{
command =
"${xrandr} --output $(${xrandr} | grep 'XWAYLAND.*2560x1080' | awk '{printf $1}') --primary";
command = "${wayvnc} 0.0.0.0 -o DP-1";
}
];
] else [ ]);
bars = [ ];
window = {
border = 2;