mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
reworked Unfree stuff
This commit is contained in:
@@ -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
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -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; [
|
||||||
|
|||||||
Reference in New Issue
Block a user