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 } @ inputs: let
system = "x86_64-linux"; 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 { pkgs-unstable = import nixpkgs-unstable {
inherit system; inherit system;
config.allowUnfree = true; #hplipWithPlugins is unfree...
config.allowUnfreePredicate = pkg:
builtins.elem (nixpkgs.lib.getName pkg) [
"hplip"
"vivify.vim"
"cheatsheet.nvim"
];
}; };
in { in {
nixosConfigurations = { nixosConfigurations = {
laptop = nixpkgs.lib.nixosSystem { laptop = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs pkgs-unstable;}; specialArgs = {inherit inputs pkgs pkgs-unstable;};
modules = [ modules = [
./hosts/laptop/configuration.nix ./hosts/laptop/configuration.nix
]; ];
+1 -1
View File
@@ -41,7 +41,7 @@
../../hostsModules/laptop/nixos/hardwareUtils.nix ../../hostsModules/laptop/nixos/hardwareUtils.nix
../../modules/nixos/otherUtils.nix ../../modules/nixos/otherUtils.nix
]; ];
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [