From 181e650094ffc7f26d26c107c4671d80227225f2 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Tue, 18 Feb 2025 17:58:35 -0500 Subject: [PATCH] Install steam-run-free. --- nix/configuration/configuration.nix | 1 + nix/configuration/hosts/odo/default.nix | 1 + .../roles/steam_run_free/default.nix | 29 +++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 nix/configuration/roles/steam_run_free/default.nix diff --git a/nix/configuration/configuration.nix b/nix/configuration/configuration.nix index 177c349..1655469 100644 --- a/nix/configuration/configuration.nix +++ b/nix/configuration/configuration.nix @@ -68,6 +68,7 @@ ./roles/gnuplot ./roles/sops ./roles/gcloud + ./roles/steam_run_free ]; nix.settings.experimental-features = [ diff --git a/nix/configuration/hosts/odo/default.nix b/nix/configuration/hosts/odo/default.nix index f858002..9b2dbd8 100644 --- a/nix/configuration/hosts/odo/default.nix +++ b/nix/configuration/hosts/odo/default.nix @@ -71,6 +71,7 @@ me.sops.enable = true; me.sound.enable = true; me.steam.enable = true; + me.steam_run_free.enable = true; me.sway.enable = true; me.tekton.enable = true; me.terraform.enable = true; diff --git a/nix/configuration/roles/steam_run_free/default.nix b/nix/configuration/roles/steam_run_free/default.nix new file mode 100644 index 0000000..b592500 --- /dev/null +++ b/nix/configuration/roles/steam_run_free/default.nix @@ -0,0 +1,29 @@ +{ + config, + lib, + pkgs, + ... +}: + +{ + imports = [ ]; + + options.me = { + steam_run_free.enable = lib.mkOption { + type = lib.types.bool; + default = false; + example = true; + description = "Whether we want to install steam_run_free."; + }; + }; + + config = lib.mkIf config.me.steam_run_free.enable ( + lib.mkMerge [ + { + environment.systemPackages = with pkgs; [ + steam-run-free + ]; + } + ] + ); +}