Re-enable steam

This commit is contained in:
Charlotte Van Petegem 2021-06-26 11:50:17 +02:00
parent 8b79461043
commit db9642d714
No known key found for this signature in database
GPG key ID: 019E764B7184435A
3 changed files with 31 additions and 0 deletions

View file

@ -35,6 +35,7 @@
git.email = "charlotte@vanpetegem.me";
minecraft.client = true;
sshd.enable = true;
steam.enable = true;
vpn.ugent.enable = true;
zeroad.enable = true;
zfs = {

View file

@ -17,6 +17,7 @@
./smartd.nix
./ssh.nix
./sshd.nix
./steam.nix
./syncthing-server.nix
./teeworlds.nix
./tetris.nix

29
modules/steam.nix Normal file
View file

@ -0,0 +1,29 @@
{ config, lib, pkgs, ... }:
{
options.chvp.steam.enable = lib.mkOption {
default = false;
example = true;
};
config = lib.mkIf config.chvp.steam.enable {
hardware.opengl = {
driSupport32Bit = true;
extraPackages = with pkgs.pkgsi686Linux; [ libva ];
};
services.pipewire.alsa.support32Bit = true;
chvp = {
nix.unfreePackages = [ "steam" "steam-original" "steam-runtime" ];
zfs.homeLinks = [
{ path = ".paradoxlauncher"; type = "cache"; }
{ path = ".steam"; type = "cache"; }
{ path = ".local/share/Steam"; type = "cache"; }
{ path = ".local/share/Paradox Interactive"; type = "cache"; }
];
};
home-manager.users.charlotte = { pkgs, ... }: {
home.packages = [ pkgs.steam ];
};
};
}