From c03779aee4dd3462ae59a3ff78cc85817a8285a0 Mon Sep 17 00:00:00 2001 From: Jimbo Date: Sat, 21 Sep 2024 20:03:45 -0400 Subject: [PATCH] Add unfree environment variable like I should have a long time ago --- home-manager/users/jimbo.nix | 1 + nixos/modules/legacy.nix | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/home-manager/users/jimbo.nix b/home-manager/users/jimbo.nix index 274b856..0547df5 100644 --- a/home-manager/users/jimbo.nix +++ b/home-manager/users/jimbo.nix @@ -6,6 +6,7 @@ EDITOR = "nvim"; LIBVIRT_DEFAULT_URI = "qemu:///system"; HISTCONTROL = "ignoreboth"; + NIXPKGS_ALLOW_UNFREE = "1"; }; }; } diff --git a/nixos/modules/legacy.nix b/nixos/modules/legacy.nix index 98f1105..8db57c7 100644 --- a/nixos/modules/legacy.nix +++ b/nixos/modules/legacy.nix @@ -1,10 +1,8 @@ {config, inputs, lib, ...}: { - # This will add each flake input as a registry - # To make nix commands consistent with your flake + # This will add each flake input as a registry to make nix commands consistent with your flake nix.registry = (lib.mapAttrs (_: flake: {inherit flake;})) ((lib.filterAttrs (_: lib.isType "flake")) inputs); - # This will additionally add your inputs to the system's legacy channels - # Making legacy nix commands consistent as well, awesome! + # This will add your inputs to the system's legacy channels making legacy nix commands consistent nix.nixPath = ["/etc/nix/path"]; environment.etc = lib.mapAttrs'