[Nix] Attempts to allow unfree packages

This commit is contained in:
2025-02-11 21:31:24 -08:00
parent 7c77936ae9
commit 77a9c37df7
4 changed files with 25 additions and 7 deletions

View File

@@ -1,6 +1,13 @@
{ self, nixpkgs, inputs, ... }:
nixpkgs.lib.nixosSystem {
let
system = "x86_64-linux";
# TODO: Fix this so it doesn't warn about wanting readOnlyPkgs
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./configuration.nix
./hardware-configuration.nix
@@ -13,8 +20,14 @@ nixpkgs.lib.nixosSystem {
];
};
home-manager.useGlobalPkgs = true;
home-manager.extraSpecialArgs = { inherit inputs; };
home-manager.extraSpecialArgs = {
inherit inputs;
inherit pkgs;
};
}
];
specialArgs = { inherit inputs; };
specialArgs = {
inherit inputs;
inherit pkgs;
};
}