install steam
All checks were successful
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #24338 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #24337 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra nixosConfigurations.not522 Hydra build #24340 of nixos-config:pr618:nixosConfigurations.not522
Hydra checks.x86_64-linux.containers-default Hydra build #24336 of nixos-config:pr618:checks.x86_64-linux.containers-default
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #24339 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.not522-installer Hydra build #24341 of nixos-config:pr618:nixosConfigurations.not522-installer
Hydra nixosConfigurations.thinkrac Hydra build #24344 of nixos-config:pr618:nixosConfigurations.thinkrac
Hydra nixosConfigurations.rainbow-resort Hydra build #24343 of nixos-config:pr618:nixosConfigurations.rainbow-resort
Hydra nixosConfigurations.pc-installer Hydra build #24342 of nixos-config:pr618:nixosConfigurations.pc-installer

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-08 14:26:54 +01:00
parent fe6c96345d
commit 2909c873ce
3 changed files with 20 additions and 0 deletions

View file

@ -1,4 +1,7 @@
{config, ...}: {
imports = [
./steam
];
home-manager.users.darkkirb.imports =
if config.isGraphical
then [

View file

@ -0,0 +1,11 @@
{lib, config, ...}: {
programs.steam = lib.mkIf config.isGraphical {
enable = !config.isInstaller;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
};
nixpkgs.config.allowUnfree = true;
home-manager.users.darkkirb.imports = if config.isGraphical then [./home-manager.nix] else [];
}

View file

@ -0,0 +1,6 @@
{...}: {
home.persistence.default.directories = [{
directory = ".local/share/Steam";
method = "symlink";
}];
}