Personal-use NixOS configuration
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Attempt to keep steam data

encode42 3fc26ea3 0b81b7f3

+16 -2
+16 -2
hosts/prospect/users/guest.nix
··· 8 8 9 9 let 10 10 persistentDirectories = [ 11 + ".manpath" 12 + ".nix-defexpr" 11 13 ".nix-profile" 14 + 15 + ".steam" 16 + ".local/share/Steam/steamapps/common" 12 17 ]; 13 18 14 - findExclusions = builtins.concatStringsSep " \\\n" (map (path: 19 + persistentFiles = [ 20 + ".local/share/Steam/steamapps/libraryfolders.vdf" 21 + ]; 22 + 23 + findDirectoryExclusions = builtins.concatStringsSep " \\\n" (map (path: 15 24 let 16 25 baseExclusion = "-not -path '${config.users.users.guest.home}/${path}'"; 17 26 in 18 27 "${baseExclusion} ${baseExclusion}/*" 28 + ) persistentDirectories); 29 + 30 + findFileExclusions = builtins.concatStringsSep " \\\n" (map (path: 31 + "-not -path '${config.users.users.guest.home}/${path}'" 19 32 ) persistentDirectories); 20 33 in 21 34 { ··· 54 67 ExecStart = pkgs.writeShellScript "clean-guest-home" '' 55 68 find ${config.users.users.guest.home} \ 56 69 -mindepth 1 \ 57 - ${findExclusions} \ 70 + ${findDirectoryExclusions} \ 71 + ${findFileExclusions} \ 58 72 -exec echo {} + 59 73 ''; 60 74 };