chore: nix fmt
This commit is contained in:
parent
a80bd4ed3b
commit
7266fff06e
128 changed files with 3402 additions and 2013 deletions
|
@ -1,9 +1,14 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, config
|
||||
, ... }: with lib; let
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.passthrough.headless;
|
||||
in mkIf (cfg.enable != null) {
|
||||
in
|
||||
mkIf (cfg.enable != null) {
|
||||
wayland.windowManager.sway.config = {
|
||||
output = {
|
||||
${cfg.enable}.pos = "0 0";
|
||||
|
@ -13,12 +18,14 @@ in mkIf (cfg.enable != null) {
|
|||
startup = [ { command = "swaymsg create_output && swaymsg output HEADLESS-1 disable"; } ];
|
||||
};
|
||||
|
||||
home.packages = [ (pkgs.writeShellScriptBin "headless" ''
|
||||
swaymsg output HEADLESS-1 enable
|
||||
${pkgs.wayvnc}/bin/wayvnc \
|
||||
--output=HEADLESS-1 \
|
||||
${cfg.extraArgs} \
|
||||
${cfg.host} ${toString cfg.port}
|
||||
swaymsg output HEADLESS-1 disable
|
||||
'') ];
|
||||
home.packages = [
|
||||
(pkgs.writeShellScriptBin "headless" ''
|
||||
swaymsg output HEADLESS-1 enable
|
||||
${pkgs.wayvnc}/bin/wayvnc \
|
||||
--output=HEADLESS-1 \
|
||||
${cfg.extraArgs} \
|
||||
${cfg.host} ${toString cfg.port}
|
||||
swaymsg output HEADLESS-1 disable
|
||||
'')
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue