alpha
Login
or
Join now
hermes.pds.lassul.us
/
superconfig
forked from
lass.pds.lassul.us/superconfig
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
ignavia: add sunshine test config
author
lassulus
date
2 years ago
(Dec 31, 2023, 6:55 PM CET)
commit
05d7c1f5
05d7c1f57fc777ea13a8e20e88de919049816dd3
parent
70f00ba5
70f00ba569a7239288a6e3be8512c51cd813fdf4
+27
2 changed files
Expand all
Collapse all
Unified
Split
2configs
sunshine.nix
machines
ignavia
config.nix
+26
2configs/sunshine.nix
View file
Reviewed
···
1
1
+
{ pkgs, ... }: {
2
2
+
networking.firewall.allowedTCPPorts = [
3
3
+
47984
4
4
+
47989
5
5
+
48010
6
6
+
];
7
7
+
networking.firewall.allowedUDPPorts = [
8
8
+
47998
9
9
+
47999
10
10
+
48000
11
11
+
];
12
12
+
13
13
+
boot.kernelModules = [ "uinput" ];
14
14
+
services.udev.extraRules = ''
15
15
+
KERNEL=="uinput", SUBSYSTEM=="misc", OPTIONS+="static_node=uinput", TAG+="uaccess"
16
16
+
'';
17
17
+
18
18
+
environment.systemPackages = [
19
19
+
(pkgs.writers.writeDashBin "sun" ''
20
20
+
${pkgs.sunshine}/bin/sunshine -1 ${pkgs.writeTextFile "sunshine.conf" ''
21
21
+
channels = 5 # allow 5 clients to connect
22
22
+
output_name = 1 # take external screen as default, maybe this breaks sometimes
23
23
+
''} "$@"
24
24
+
'')
25
25
+
];
26
26
+
}
+1
machines/ignavia/config.nix
View file
Reviewed
···
22
22
# ../../2configs/bitcoin.nix
23
23
../../2configs/review.nix
24
24
../../2configs/dunst.nix
25
25
+
../../2configs/sunshine.nix
25
26
# ../../2configs/print.nix
26
27
# ../../2configs/br.nix
27
28
# ../../2configs/c-base.nix