diff --git a/flake.nix b/flake.nix index 0554d6b..f02e272 100644 --- a/flake.nix +++ b/flake.nix @@ -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 ]; diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 10f26ab..c7226fd 100755 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -41,7 +41,7 @@ ../../hostsModules/laptop/nixos/hardwareUtils.nix ../../modules/nixos/otherUtils.nix ]; - + # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [