Move steam.nix to user folder
This commit is contained in:
		
							parent
							
								
									65764d76ff
								
							
						
					
					
						commit
						115e2849cd
					
				
					 2 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										25
									
								
								nixos/common/users/sajenim/steam/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								nixos/common/users/sajenim/steam/default.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,25 @@
 | 
			
		|||
{ ... }:
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
  fileSystems."/home/sajenim/.local/share/Steam" = {
 | 
			
		||||
    device = "/dev/disk/by-label/data";
 | 
			
		||||
    fsType = "btrfs";
 | 
			
		||||
    options = [
 | 
			
		||||
      "subvol=steam"
 | 
			
		||||
      "compress=zstd:3"
 | 
			
		||||
    ];
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  programs.steam = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    remotePlay.openFirewall = true;
 | 
			
		||||
    dedicatedServer.openFirewall = true;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  # When we mount our steam filesystem parent directories created are owned by root.
 | 
			
		||||
  # Lets fix that to avoid home-manager failing to start due to permission errors.
 | 
			
		||||
  systemd.tmpfiles.rules = [
 | 
			
		||||
    "d /home/sajenim/.local 0755 sajenim users -"
 | 
			
		||||
    "d /home/sajenim/.local/share 0755 sajenim users -"
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue