Configure for two machines

This commit is contained in:
2026-03-09 23:04:47 +00:00
parent cb2150362c
commit 95740b26bf
6 changed files with 55 additions and 35 deletions

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, hostname, ... }:
{
boot = {
@@ -48,7 +48,7 @@
"splash"
];
bootspec.enable = true;
resumeDevice = "/dev/disk/by-partlabel/disk-stationette-root";
resumeDevice = "/dev/disk/by-partlabel/disk-${hostname}-root";
};
systemd = {

View File

@@ -1,8 +1,8 @@
{ ... }:
{ hostname, ... }:
{
networking = {
hostName = "stationette";
hostName = hostname;
networkmanager.enable = true;
wireless = {
iwd.enable = true;

View File

@@ -1,4 +1,4 @@
{ pkgs, pkgs-unstable, ... }:
{ pkgs, pkgs-unstable, hostname, ... }:
{
@@ -18,7 +18,7 @@
withUWSM = true;
};
steam = {
enable = true;
enable = hostname == "station";
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers