enabled generic allow unfree for sanity
This commit is contained in:
parent
a589331d4b
commit
95063ba566
1 changed files with 12 additions and 8 deletions
18
flake.nix
18
flake.nix
|
|
@ -3,18 +3,22 @@
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
};
|
};
|
||||||
outputs = { self, nixpkgs }@inputs:
|
outputs =
|
||||||
|
{
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
}@inputs:
|
||||||
let
|
let
|
||||||
supportedSystems = [ "x86_64-linux" ];
|
supportedSystems = [ "x86_64-linux" ];
|
||||||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||||
#v I improved how you call in packages
|
# I improved how you call in packages
|
||||||
pkgs = forAllSystems (system:
|
pkgs = forAllSystems (
|
||||||
|
system:
|
||||||
import nixpkgs {
|
import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
#v this can be adjusted to read args passed without impure later
|
#v this can be adjusted to read args passed without impure later
|
||||||
config = { allowUnfreePredicate = pkg: builtins.elem (nixpkgs.lib.getName pkg) [
|
config = {
|
||||||
"unrar"
|
allowUnfree = true;
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
@ -27,7 +31,7 @@
|
||||||
default = pkgs.${system}.callPackage ./nix/devshell.nix { };
|
default = pkgs.${system}.callPackage ./nix/devshell.nix { };
|
||||||
});
|
});
|
||||||
nixConfig = {
|
nixConfig = {
|
||||||
#v I would have like this to work but it requires the nix user to set an option.
|
# I would have like this to work but it requires the nix user to set an option.
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue