DEVELOPMENT ENVIRONMENT

~liljamo/nix-arta

8c2c0f2888ba80c5075618dcd71ef9a91a512b4c — Jonni Liljamo 4 months ago 9799348
fix(hosts/alice): remove option that was removed
2 files changed, 1 insertions(+), 67 deletions(-)

M hosts/alice/default.nix
D roles/steam.nix
M hosts/alice/default.nix => hosts/alice/default.nix +1 -4
@@ 34,10 34,7 @@
  roles.kitty.enable = true;

  roles.nvidia.enable = true;
  roles.plasma = {
    enable = true;
    enableHDR = true;
  };
  roles.plasma.enable = true;

  roles.steam.enable = true;
}

D roles/steam.nix => roles/steam.nix +0 -63
@@ 1,63 0,0 @@
{
  config,
  lib,
  pkgs,
  ...
}: let
  cfg = config.roles.steam;
in {
  options.roles.steam = {
    enable = lib.mkEnableOption "";
  };

  config = lib.mkIf cfg.enable {
    arta.unfree.allow = [
      "steam-run"
      "steam-original"
      "steam"
    ];

    programs.steam = {
      enable = true;
      remotePlay.openFirewall = false;
      dedicatedServer.openFirewall = false;
    };
    hardware.steam-hardware.enable = true;
    programs.gamemode = {
      enable = true;
    };

    environment.systemPackages = with pkgs; [
      gamescope
      protontricks
      gnome.zenity
    ];

    hm = {
      programs.mangohud = {
        enable = true;
        enableSessionWide = false;
        settings = {
          fps_limit = "60,90,120,200";
          time = true;

          gpu_stats = true;
          gpu_temp = true;
          gpu_text = "GPU";

          cpu_stats = true;
          cpu_temp = true;
          cpu_text = "CPU";

          vram = true;
          ram = true;

          fps = true;
          frametime = true;
          frame_timing = true;
          show_fps_limit = true;
        };
      };
    };
  };
}