Compare commits

..

No commits in common. "ffa60e8baaa2c89765f0a96350b398a17a03e2fb" and "3d3b43ac2ec33dcfcfdba72ce26c75f0e75ddc5d" have entirely different histories.

6 changed files with 19 additions and 83 deletions

View file

@ -18,6 +18,7 @@ in
{ {
options.eboskma.programs.sway = { options.eboskma.programs.sway = {
enable = mkEnableOption "sway"; enable = mkEnableOption "sway";
wayvnc = mkEnableOption "wayvnc";
package = mkPackageOption pkgs "sway" { }; package = mkPackageOption pkgs "sway" { };
lock-wallpaper = mkOption { lock-wallpaper = mkOption {
@ -367,6 +368,23 @@ in
}; };
systemd.user = { 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 = "always";
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
};
targets.tray = { targets.tray = {
Unit = { Unit = {
Description = "Home Manager System Tray"; Description = "Home Manager System Tray";

View file

@ -1,66 +0,0 @@
{
pkgs,
config,
lib,
...
}:
with lib;
let
cfg = config.eboskma.services.wayvnc;
wayvncArgs = builtins.concatStringsSep " " (
(lib.optional cfg.gpuAcceleration "--gpu") ++ [ cfg.listenAddress ]
);
in
{
options.eboskma.services.wayvnc = {
enable = mkEnableOption "wayvnc";
listenAddress = mkOption {
description = "Bind wayvnc to this address";
type = types.str;
default = "0.0.0.0";
};
gpuAcceleration = mkEnableOption "GPU Accelerated encoding";
};
config = mkIf cfg.enable {
# [Unit]
# Description=A VNC server for wlroots based Wayland compositors
# Requires=sway.service
# After=sway.service
# [Service]
# Type=simple
# ExecStart=/usr/bin/wayvnc
# Restart=on-failure
# RestartSec=1
# TimeoutStopSec=10
# [Install]
# WantedBy=multi-user.target
systemd.user = {
services = {
wayvnc = {
Unit = {
Description = "A VNC server for wlroots based Wayland compositors";
Requires = [ "sway-session.target" ];
After = [ "sway-session.target" ];
};
Service = {
ExecStart = "${pkgs.wayvnc}/bin/wayvnc ${wayvncArgs}";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
Install = {
WantedBy = [ "multi-user.target" ];
};
};
};
};
};
}

View file

@ -21,10 +21,6 @@
../../users/builder ../../users/builder
]; ];
nixpkgs.config = {
rocmSupport = true;
};
eboskma = { eboskma = {
users = { users = {
erwin = { erwin = {

View file

@ -21,9 +21,6 @@
]; ];
# nixpkgs.config.allowUnfree = true; # nixpkgs.config.allowUnfree = true;
nixpkgs.config = {
cudaSupport = true;
};
eboskma = { eboskma = {
var.workSystem = true; var.workSystem = true;

View file

@ -150,12 +150,6 @@ in
copyCommand = "${pkgs.wl-clipboard}/bin/wl-copy"; copyCommand = "${pkgs.wl-clipboard}/bin/wl-copy";
}; };
}; };
services = {
wayvnc = {
enable = true;
gpuAcceleration = true;
};
};
}; };
home = { home = {
@ -184,7 +178,6 @@ in
element-desktop element-desktop
fd fd
ffmpeg_5-full ffmpeg_5-full
hashcat
helvum helvum
imagemagick imagemagick
(imv.override { (imv.override {

View file

@ -122,6 +122,7 @@ in
sway = { sway = {
enable = true; enable = true;
package = pkgs.sway; package = pkgs.sway;
wayvnc = true;
lock-wallpaper = "${homeCfg.home.homeDirectory}/.wallpapers/river-3840.png"; lock-wallpaper = "${homeCfg.home.homeDirectory}/.wallpapers/river-3840.png";
output = { output = {
"DP-1" = { "DP-1" = {
@ -162,9 +163,6 @@ in
}; };
services = { services = {
xbanish.enable = false; xbanish.enable = false;
wayvnc = {
enable = true;
};
}; };
}; };
programs = { programs = {