allow specific unfree

This commit is contained in:
Noah Masur
2022-06-04 21:08:09 -04:00
parent f4d5df0071
commit 3b38f0301a
8 changed files with 29 additions and 10 deletions

View File

@ -4,8 +4,6 @@
config = lib.mkIf config.gaming.leagueoflegends {
nixpkgs.config.allowUnfree = true;
# League of Legends anti-cheat requirement
boot.kernel.sysctl = { "abi.vsyscall32" = 0; };

View File

@ -42,12 +42,10 @@ in {
epic-games = {
body = ''
set game (legendary list 2>/dev/null \
| tail -n +3 \
| head -n -2 \
| awk '/^ \* / { print $0; }' \
| sed -e 's/ (.*)$//' -e 's/ \* //' \
| awk '!/^ / { print $0; }' \
| fzf)
and legendary launch "$game" 2>/dev/null
and legendary launch "$game" &> /dev/null
'';
};
};

View File

@ -4,7 +4,7 @@
config = lib.mkIf config.gaming.steam {
hardware.steam-hardware.enable = true;
nixpkgs.config.allowUnfree = true;
unfreePackages = [ "steam" "steam-original" "steamcmd" ];
environment.systemPackages = with pkgs; [
steam