Skip to content

Commit

Permalink
fix: isDarwin
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamHsieh committed Sep 6, 2024
1 parent cc0dfc0 commit 871791d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@
};

nixosConfigurations = mkSystem {
type = "nixos";
isDarwin = false;
};

darwinConfigurations = mkSystem {
type = "darwin";
isDarwin = true;
};

checks = foreachSystem (system: {
Expand Down
4 changes: 1 addition & 3 deletions lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ in
];
};

mkSystem = { type }:
mkSystem = { isDarwin }:
let
# TODO: assert type is either "darwin" or "nixos"
isDarwin = type == "darwin";
osConfig = ../system/${if isDarwin then "darwin" else "nixos" };
hmConfig = ../home;

Expand Down

0 comments on commit 871791d

Please sign in to comment.