Compare commits

...

5 commits

2 changed files with 13 additions and 17 deletions

View file

@ -1,10 +1,10 @@
{pkgs, lib, ...}: {
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
{lib, ...}: {
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem pkg.pname [
"factorio-headless"
];
services.factorio = {
enable = true;
package = (import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/ab224822391f803e3b58c65f753162361e769075.tar.gz") {
package = (import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/e47e7cdafffab8b74c2878e02c37696dfcdebca0.tar.gz") {
config.allowUnfree = true;
}).factorio-headless;
openFirewall = true;

View file

@ -44,10 +44,6 @@
networking.hostName = "oscar"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networking.networkmanager.enable = true;
@ -102,17 +98,9 @@
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
};
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
environment.sessionVariables.NIXOS_OZONE_WL = "1";
# Define a user account. Don't forget to set a password with passwd.
@ -123,12 +111,14 @@
home-manager.users.chandler = { pkgs, ... }: {
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"android-studio-stable"
"discord"
"factorio-space-age"
];
home.packages = with pkgs; [
# applications
android-studio
blender
freecad
frescobaldi
@ -142,10 +132,14 @@
libreoffice-qt
mumble
musescore
prismlauncher
prusa-slicer
qgis
# games
bolt-launcher
prismlauncher
scummvm
# runelite
# command line applications
iperf
@ -184,7 +178,9 @@
# Unfree:
discord
factorio-space-age
(import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/e47e7cdafffab8b74c2878e02c37696dfcdebca0.tar.gz") {
config.allowUnfree = true;
}).factorio-space-age
];
programs.thunderbird.enable = true;