Skip to content

Commit

Permalink
hosts: get rid of system in nixosSystem
Browse files Browse the repository at this point in the history
This is more or less an anti-pattern that is expected to be deprecated for modularity. Using hostPlatform makes it easier to override or read within the module system.
  • Loading branch information
NotAShelf committed Nov 7, 2024
1 parent c649111 commit a739d75
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
inherit (self) inputs;
mkHost = name: system:
nixpkgs.lib.nixosSystem {
inherit system;
modules =
[
{networking.hostName = name;}
{
networking.hostName = name;
nixpkgs.hostPlatform = system;
}
./${name}
]
++ builtins.attrValues self.nixosModules;
Expand Down

0 comments on commit a739d75

Please sign in to comment.