Re-enable steam
This commit is contained in:
parent
8b79461043
commit
db9642d714
3 changed files with 31 additions and 0 deletions
|
@ -35,6 +35,7 @@
|
||||||
git.email = "charlotte@vanpetegem.me";
|
git.email = "charlotte@vanpetegem.me";
|
||||||
minecraft.client = true;
|
minecraft.client = true;
|
||||||
sshd.enable = true;
|
sshd.enable = true;
|
||||||
|
steam.enable = true;
|
||||||
vpn.ugent.enable = true;
|
vpn.ugent.enable = true;
|
||||||
zeroad.enable = true;
|
zeroad.enable = true;
|
||||||
zfs = {
|
zfs = {
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
./smartd.nix
|
./smartd.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./sshd.nix
|
./sshd.nix
|
||||||
|
./steam.nix
|
||||||
./syncthing-server.nix
|
./syncthing-server.nix
|
||||||
./teeworlds.nix
|
./teeworlds.nix
|
||||||
./tetris.nix
|
./tetris.nix
|
||||||
|
|
29
modules/steam.nix
Normal file
29
modules/steam.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue