summaryrefslogtreecommitdiff
path: root/hosts/unfree.nix
blob: 832e99a2e292d6d3c4e7dc35e981568039deb63d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
  pkgs,
  inputs,
  ...
}: {
  # allow unfree
  nixpkgs.config = {
    allowUnfree = true;
    allowUnfreePredicate = _: true;
    chromium.enableWideVine = true;
  };

  # https://stackoverflow.com/questions/77585228/how-to-allow-unfree-packages-in-nix-for-each-situation-nixos-nix-nix-wit
  environment.systemPackages = with pkgs; [
    # opera
    spotify
    vscode
    # fonts
    corefonts
    #  symbola
    # steamcmd
    # steam-run
    protonup-qt
    # mangohud
    # lutris
    # bottles
    # heroic
    # code-cursor
    # inputs.claude-desktop.packages.x86_64-linux.claude-desktop
    # inputs.windsurf.packages.x86_64-linux.default
  ];
  # fucking vscode requires this for github copilot

  services.gnome.gnome-keyring.enable = true;
  programs.steam = {
    enable = true;
    # package = pkgs.steam.override {
    #   extraLibraries = pkgs: [pkgs.openssl pkgs.nghttp2 pkgs.libidn2 pkgs.rtmpdump pkgs.libpsl pkgs.curl pkgs.krb5 pkgs.keyutils];
    # };
    # extraCompatPackages = [pkgs.proton-ge-bin];
    protontricks.enable = true;
    remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
    dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
  };
  systemd.extraConfig = "DefaultlimitNOFILE=524288";
}