From 1f15dae730f595c06c0ff1e03b4dacc9a89673cc Mon Sep 17 00:00:00 2001 From: Astrid Yu Date: Sun, 3 Sep 2023 15:20:41 -0700 Subject: [PATCH] bonney: Separate steam link stuff into separate file --- machines/bonney/configuration.nix | 8 +++----- machines/bonney/steam-link.nix | 7 +++++++ 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 machines/bonney/steam-link.nix diff --git a/machines/bonney/configuration.nix b/machines/bonney/configuration.nix index dc85b9a3..06234752 100644 --- a/machines/bonney/configuration.nix +++ b/machines/bonney/configuration.nix @@ -8,6 +8,8 @@ with lib; { inputs.self.nixosModules.server inputs.self.nixosModules.media-server + + ./steam-link.nix ]; boot.loader = { @@ -18,7 +20,7 @@ with lib; { astral = { monitoring-node.scrapeTransport = "tailscale"; tailscale.oneOffKey = - "tskey-auth-ka8GwW6CNTRL-buTFdt8S7P7Cmpwb1uQiM797EGYiPfc3"; + "tskey-auth-kkLCKn6CNTRL-tv1Pmix6CKCfrj9bX1U1JCFRJn7uFRgYd"; }; networking = { @@ -33,10 +35,6 @@ with lib; { time.timeZone = "US/Pacific"; - programs.steam.enable = true; - services.flatpak.enable = true; # steam link - - virtualisation.podman.enable = true; virtualisation.vmVariant = { # Autologin as root because we testin here services.getty.autologinUser = "root"; diff --git a/machines/bonney/steam-link.nix b/machines/bonney/steam-link.nix new file mode 100644 index 00000000..540c0e18 --- /dev/null +++ b/machines/bonney/steam-link.nix @@ -0,0 +1,7 @@ +{ + # packaged via flatpak + services.flatpak.enable = true; + + # Fails to run without this + boot.kernel.sysctl."kernel.unprivileged_userns_clone" = 1; +} \ No newline at end of file