nixos/hosts/FredOS-Gaming.nix

51 lines
1.5 KiB
Nix
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ config, pkgs, lib, ... }:
(lib.mkIf (config.networking.hostName == "FredOS-Gaming") {
    nixpkgs.config.packageOverrides = pkgs: {
      pkgs = pkgs // {
        lib32 = pkgs.pkgsi686Linux.pkgs;
      };
    }; # <--- Semicolon required here to separate from environment.systemPackages
    
    # FIXED: No semicolons inside the array [...]
    environment.systemPackages = [
      pkgs.lutris
      pkgs.adwaita-icon-theme
      pkgs.nix-index
      pkgs.libdecor
      pkgs.lib32.libdecor
    ]; # <--- Semicolon required here
    hardware.graphics = {
      enable = true;
      enable32Bit = true;
    }; # <--- Semicolon required here
    programs.steam = {
      enable = true;
      remotePlay.openFirewall = true;
      package = pkgs.steam.override {
        extraPkgs = pkgs: with pkgs; [
          kdePackages.breeze
        ];
      };
    }; # <--- Semicolon required here
    environment.sessionVariables = {
      LIBDECOR_PLUGIN_DIR = "${pkgs.libdecor}/lib/libdecor/plugins-1";
      GTK_PATH = "${pkgs.gtk3}/lib/gtk-3.0:${pkgs.gtk4}/lib/gtk-4.0";
    }; # <--- Semicolon required here
    system.autoUpgrade = {
      enable = true;
      dates = "daily";
      persistent = true;
      allowReboot = false;
      flags = [
        "--upgrade"
        "--option" "tarball-ttl" "0"
      ];
    }; # <--- Semicolon required here
})