feat(modules/de): add sunshine remote streaming server
This commit is contained in:
parent
604432fd74
commit
b6dde55bad
2 changed files with 12 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
||||||
nw-config.wol.interface = "enp12s0";
|
nw-config.wol.interface = "enp12s0";
|
||||||
de.enable = true;
|
de.enable = true;
|
||||||
de.type = "hyprland";
|
de.type = "hyprland";
|
||||||
|
de.enableSunshine = true;
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/disk/by-uuid/e5005ea6-6c5a-4ab3-9767-ce7772582024";
|
device = "/dev/disk/by-uuid/e5005ea6-6c5a-4ab3-9767-ce7772582024";
|
||||||
|
|
|
@ -17,6 +17,7 @@ in
|
||||||
example = "hyprland";
|
example = "hyprland";
|
||||||
description = "What desktop environment should be installed on the host.";
|
description = "What desktop environment should be installed on the host.";
|
||||||
};
|
};
|
||||||
|
enableSunshine = lib.mkEnableOption "Enable streaming with Sunshine.";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -70,6 +71,16 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
})
|
})
|
||||||
|
(lib.mkIf cfg.enableSunshine {
|
||||||
|
services.sunshine = {
|
||||||
|
enable = true;
|
||||||
|
capSysAdmin = true;
|
||||||
|
autoStart = true;
|
||||||
|
openFirewall = true;
|
||||||
|
settings = { };
|
||||||
|
applications = { };
|
||||||
|
};
|
||||||
|
})
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue