forked from clan/clan-core
buildClan: set clanCore.directory and hostPlatform
This commit is contained in:
parent
ac7e3f6407
commit
75cfd84949
@ -1,4 +1,4 @@
|
||||
{ nixpkgs, clan, lib }:
|
||||
{ nixpkgs, self, lib }:
|
||||
{ directory # The directory containing the machines subdirectory
|
||||
, specialArgs ? { } # Extra arguments to pass to nixosSystem i.e. useful to make self available
|
||||
, machines ? { } # allows to include machine-specific modules i.e. machines.${name} = { ... }
|
||||
@ -18,9 +18,12 @@ let
|
||||
(name: _:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
modules = [
|
||||
clan.nixosModules.clanCore
|
||||
self.nixosModules.clanCore
|
||||
(machineSettings name)
|
||||
(machines.${name} or { })
|
||||
{ clanCore.clanDir = directory; }
|
||||
# TODO: remove this once we have a hardware-config mechanism
|
||||
{ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; }
|
||||
];
|
||||
specialArgs = specialArgs;
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user