mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 00:20:13 +00:00
allow specific unfree
This commit is contained in:
@ -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; };
|
||||
|
||||
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user