Skip to content

Commit

Permalink
feat(flake): allow unfree packages
Browse files Browse the repository at this point in the history
  • Loading branch information
yunfachi committed Dec 15, 2023
1 parent 2f13f13 commit bae745b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@
inherit username userfullname useremail;
inherit system;

pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
pkgs-yunfachi = import nixpkgs-yunfachi {inherit nixpkgs system;};

umport = pkgs-yunfachi.umport;
};
in {
Expand Down
5 changes: 2 additions & 3 deletions hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
lib = specialArgs.inputs.nixpkgs.lib;
home-manager = specialArgs.inputs.home-manager;
nixpkgs = specialArgs.inputs.nixpkgs;

mkHost = host: let
nixosModules = [
./${host}/hardware.nix
Expand All @@ -21,6 +22,7 @@
../options/home
../home
];

type = import ./${host}/type.nix;
extraSpecialArgs =
{
Expand Down Expand Up @@ -55,9 +57,6 @@
home-manager.lib.homeManagerConfiguration {
inherit extraSpecialArgs;

pkgs = import nixpkgs {
config.allowUnfree = lib.mkForce true;
};
modules = homeModules;
};
in
Expand Down

0 comments on commit bae745b

Please sign in to comment.