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
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:
parent
fe6c96345d
commit
2909c873ce
3 changed files with 20 additions and 0 deletions
|
@ -1,4 +1,7 @@
|
|||
{config, ...}: {
|
||||
imports = [
|
||||
./steam
|
||||
];
|
||||
home-manager.users.darkkirb.imports =
|
||||
if config.isGraphical
|
||||
then [
|
||||
|
|
11
programs/desktop/steam/default.nix
Normal file
11
programs/desktop/steam/default.nix
Normal 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 [];
|
||||
}
|
6
programs/desktop/steam/home-manager.nix
Normal file
6
programs/desktop/steam/home-manager.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{...}: {
|
||||
home.persistence.default.directories = [{
|
||||
directory = ".local/share/Steam";
|
||||
method = "symlink";
|
||||
}];
|
||||
}
|
Loading…
Reference in a new issue