Compare commits
33 Commits
6322e0f4ac
...
70b7fece12
| Author | SHA1 | Date |
|---|---|---|
|
|
70b7fece12 | |
|
|
30a9a3d2c8 | |
|
|
f9eb736da4 | |
|
|
64b4aeefc3 | |
|
|
6c03be2447 | |
|
|
2ab6fa3913 | |
|
|
9e2f832e37 | |
|
|
bc6ad113ad | |
|
|
76f7ccbd12 | |
|
|
7cfa192e65 | |
|
|
8fca315a56 | |
|
|
b91dc785db | |
|
|
28c17a0e44 | |
|
|
d501ea4688 | |
|
|
3432aee0a1 | |
|
|
85313e2d51 | |
|
|
eb6ee51b01 | |
|
|
925ab10de1 | |
|
|
c136b1dde9 | |
|
|
28924ab783 | |
|
|
dbf37349fb | |
|
|
8c174c857f | |
|
|
482a3d6575 | |
|
|
fac367dc7e | |
|
|
14747d9ec1 | |
|
|
b2ef9326fd | |
|
|
927f6997ee | |
|
|
1e3587ac7e | |
|
|
bc44257d0a | |
|
|
76b46b1807 | |
|
|
8cc8e4c93e | |
|
|
2efa87f90c | |
|
|
dfbc3540e6 |
|
|
@ -19,5 +19,7 @@
|
||||||
|
|
||||||
modules.display.scale = 2;
|
modules.display.scale = 2;
|
||||||
|
|
||||||
|
modules.steam.remotePlay.enable = true;
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
./plasma.nix
|
./plasma.nix
|
||||||
./sddm.nix
|
./sddm.nix
|
||||||
./services.nix
|
./services.nix
|
||||||
|
./steam.nix
|
||||||
./stylix.nix
|
./stylix.nix
|
||||||
./system.nix
|
./system.nix
|
||||||
./tailscale.nix
|
./tailscale.nix
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,20 @@
|
||||||
{
|
{
|
||||||
host,
|
host,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "${host}";
|
hostName = "${host}";
|
||||||
networkmanager.enable = true;
|
networkmanager = {
|
||||||
|
enable = true;
|
||||||
|
# resolved is only enabled when tailscale is; pointing NM at a
|
||||||
|
# systemd-resolved that isn't running would break DNS entirely
|
||||||
|
dns = lib.mkIf config.services.resolved.enable "systemd-resolved";
|
||||||
|
};
|
||||||
|
wireless.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [ networkmanagerapplet ];
|
environment.systemPackages = with pkgs; [ networkmanagerapplet ];
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.steam;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.steam = {
|
||||||
|
enable = true;
|
||||||
|
remotePlay.openFirewall = cfg.remotePlay.enable;
|
||||||
|
dedicatedServer.openFirewall = cfg.remotePlay.enable;
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.steam-hardware.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -10,5 +10,12 @@ in
|
||||||
{
|
{
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
|
|
||||||
|
# systemd-resolved is needed for tailscale's MagicDNS to work properly
|
||||||
|
services.resolved.enable = true;
|
||||||
|
|
||||||
|
# tailscaled applies its DNS config (split DNS, MagicDNS) to
|
||||||
|
# systemd-resolved over D-Bus, which is polkit-guarded
|
||||||
|
security.polkit.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
./plasma.nix
|
./plasma.nix
|
||||||
./screenshot.nix
|
./screenshot.nix
|
||||||
./shell.nix
|
./shell.nix
|
||||||
|
./steam.nix
|
||||||
./system.nix
|
./system.nix
|
||||||
./tailscale.nix
|
./tailscale.nix
|
||||||
./vm.nix
|
./vm.nix
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
{
|
||||||
|
options.modules.steam = {
|
||||||
|
enable = mkEnableOption "Steam";
|
||||||
|
remotePlay = {
|
||||||
|
enable = mkEnableOption "Steam Remote Play firewall rules";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -30,4 +30,6 @@
|
||||||
modules.screenshot.enable = true;
|
modules.screenshot.enable = true;
|
||||||
|
|
||||||
modules.tailscale.enable = true;
|
modules.tailscale.enable = true;
|
||||||
|
|
||||||
|
modules.steam.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue