From 4e9ffcf6bdfd67e1ade61d430de96347f822a3fa Mon Sep 17 00:00:00 2001 From: aaron Date: Sat, 21 Mar 2026 16:43:43 +0100 Subject: [PATCH] refactor(unfree): move the unfree setting to the settings module --- modules/nixos/settings.nix | 5 +++-- modules/nixos/steam.nix | 3 --- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/nixos/settings.nix b/modules/nixos/settings.nix index 2a1a218..cf3bfb3 100644 --- a/modules/nixos/settings.nix +++ b/modules/nixos/settings.nix @@ -32,10 +32,11 @@ }; }; + # allow unfree packages (steam, protonvpn, discord, etc.) + nixpkgs.config.allowUnfree = true; + # links /libexec from derivations to /run/current-system/sw environment.pathsToLink = [ "/libexec" ]; - # set the default editor to vim - environment.variables.EDITOR = "vim"; # enable home-manager globally home-manager.useGlobalPkgs = true; diff --git a/modules/nixos/steam.nix b/modules/nixos/steam.nix index 55f5345..6e9d450 100644 --- a/modules/nixos/steam.nix +++ b/modules/nixos/steam.nix @@ -1,9 +1,6 @@ { config, lib, pkgs, ... }: { - # allow unfree to install steam - nixpkgs.config.allowUnfree = true; - # enable steam and open firewall programs.steam = { enable = true;