This commit is contained in:
parent
071736afcf
commit
883c28d416
2 changed files with 28 additions and 6 deletions
|
@ -12,7 +12,9 @@ with lib; let
|
|||
in
|
||||
{
|
||||
options.eboskma.programs.sway = {
|
||||
enable = mkEnableOption "Enable sway";
|
||||
enable = mkEnableOption "sway";
|
||||
wayvnc = mkEnableOption "wayvnc";
|
||||
|
||||
lock-wallpaper = mkOption {
|
||||
description = "Wallpaper to use for the lockscreen";
|
||||
type = types.path;
|
||||
|
@ -333,10 +335,29 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
systemd.user.targets.tray = {
|
||||
Unit = {
|
||||
Description = "Home Manager System Tray";
|
||||
Requires = [ "graphical-session-pre.target" ];
|
||||
systemd.user = {
|
||||
services = {
|
||||
wayvnc = mkIf cfg.wayvnc {
|
||||
Unit = {
|
||||
Description = "VNC server for wlroots based Wayland compositors";
|
||||
After = [ "sway-session.target" ];
|
||||
};
|
||||
|
||||
Service = {
|
||||
ExecStart = "${pkgs.wayvnc}/bin/wayvnc 0.0.0.0";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
targets.tray = {
|
||||
Unit = {
|
||||
Description = "Home Manager System Tray";
|
||||
Requires = [ "graphical-session-pre.target" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -146,6 +146,7 @@ in
|
|||
starship.enable = true;
|
||||
sway = {
|
||||
enable = true;
|
||||
wayvnc = true;
|
||||
lock-wallpaper = ../../wallpapers/river-3840.png;
|
||||
output = {
|
||||
"DP-1" = {
|
||||
|
@ -173,7 +174,7 @@ in
|
|||
};
|
||||
startup = [
|
||||
{ command = "${ewwDaemon} --restart open bar-work"; always = true; }
|
||||
{ command = "${pkgs.wayvnc}/bin/wayvnc 0.0.0.0"; always = true; }
|
||||
# { command = "${pkgs.wayvnc}/bin/wayvnc 0.0.0.0"; always = true; }
|
||||
];
|
||||
workspaceOutputs = workspacePartition;
|
||||
extraKeybindings = {
|
||||
|
|
Loading…
Reference in a new issue