diff --git a/oscar/configuration.nix b/oscar/configuration.nix index 47b7d01..05bdf4d 100644 --- a/oscar/configuration.nix +++ b/oscar/configuration.nix @@ -2,7 +2,7 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: { imports = @@ -12,6 +12,10 @@ ]; + nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ + "factorio-alpha" + ]; + # https://discourse.nixos.org/t/github-strategies-for-configuration-nix/1983/14 nix.nixPath = [ "nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos" @@ -160,6 +164,7 @@ environment.systemPackages = with pkgs; [ # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. # wget + factorio ]; # Some programs need SUID wrappers, can be configured further or are