From 5174f845b4b8fcbfafa716a58cbba9c6a8a7e12d Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Sat, 2 May 2026 03:07:05 -0400 Subject: [PATCH] treewide: set allowUnfree for flake --- flake.nix | 7 ++++++- nixos/common.nix | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index f9e9121..0df69a3 100644 --- a/flake.nix +++ b/flake.nix @@ -42,8 +42,13 @@ ]; perSystem = - { pkgs, ... }: + { pkgs, system, ... }: { + _module.args.pkgs = import inputs.nixpkgs { + inherit system; + config.allowUnfree = true; + }; + formatter = pkgs.nixfmt; }; diff --git a/nixos/common.nix b/nixos/common.nix index 62e0aad..b4ae10c 100644 --- a/nixos/common.nix +++ b/nixos/common.nix @@ -118,10 +118,10 @@ in nixpkgs.config.allowUnfree = true; - environment.etc."nixos/current".source = lib.cleanSource ./..; - system = { configurationRevision = self.rev or self.dirtyRev; stateVersion = "25.11"; }; + + environment.etc."nixos/current".source = lib.cleanSource ./..; }