reworked Unfree stuff

This commit is contained in:
2026-05-17 11:00:44 +02:00
parent 6946122e85
commit f19d19808f
2 changed files with 22 additions and 4 deletions
+21 -3
View File
@@ -35,15 +35,33 @@
...
} @ inputs: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
pkgs = import nixpkgs {
inherit system;
config.allowUnfreePredicate = pkg:
builtins.elem (nixpkgs.lib.getName pkg) [
"hplip"
"vivify.vim"
"cheatsheet.nvim"
];
};
pkgs-unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true; #hplipWithPlugins is unfree...
config.allowUnfreePredicate = pkg:
builtins.elem (nixpkgs.lib.getName pkg) [
"hplip"
"vivify.vim"
"cheatsheet.nvim"
];
};
in {
nixosConfigurations = {
laptop = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs pkgs-unstable;};
specialArgs = {inherit inputs pkgs pkgs-unstable;};
modules = [
./hosts/laptop/configuration.nix
];