mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
Simplify function (#2903)
This commit is contained in:
@@ -7,8 +7,7 @@
|
||||
supportedSystems = with nixpkgs.lib.platforms; linux ++ darwin;
|
||||
|
||||
# Function to generate a set based on supported systems
|
||||
forAllSystems = f:
|
||||
nixpkgs.lib.genAttrs supportedSystems (system: f system);
|
||||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||
|
||||
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
|
||||
in rec {
|
||||
|
||||
Reference in New Issue
Block a user