[Nix] Attempts to allow unfree packages
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user