Skip to content

Commit

Permalink
refactor: remove unused args
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamHsieh committed Sep 5, 2024
1 parent ba5092d commit 36b94ec
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
};
};

outputs = inputs @ { self, nixpkgs, home-manager, ... }:
outputs = inputs @ { self, ... }:
with self.lib;
{
lib = import ./lib { inherit inputs; } // inputs.nixpkgs.lib;
Expand All @@ -65,14 +65,11 @@
# now it's simply `nix build .#top.{host}` or `nix build .#top.{user}`
top =
let
nixtop = nixpkgs.lib.genAttrs
(builtins.attrNames inputs.self.nixosConfigurations)
nixtop = genAttrs (builtins.attrNames inputs.self.nixosConfigurations)
(attr: inputs.self.nixosConfigurations.${attr}.config.system.build.toplevel);
darwintop = nixpkgs.lib.genAttrs
(builtins.attrNames inputs.self.darwinConfigurations)
darwintop = genAttrs (builtins.attrNames inputs.self.darwinConfigurations)
(attr: inputs.self.darwinConfigurations.${attr}.system);
hometop = nixpkgs.lib.genAttrs
(builtins.attrNames inputs.self.homeConfigurations)
hometop = genAttrs (builtins.attrNames inputs.self.homeConfigurations)
(attr: inputs.self.homeConfigurations.${attr}.activationPackage);
in
nixtop // darwintop // hometop;
Expand Down

0 comments on commit 36b94ec

Please sign in to comment.