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
|
{ directory # The directory containing the machines subdirectory
|
||||||
, specialArgs ? { } # Extra arguments to pass to nixosSystem i.e. useful to make self available
|
, 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} = { ... }
|
, machines ? { } # allows to include machine-specific modules i.e. machines.${name} = { ... }
|
||||||
@ -18,9 +18,12 @@ let
|
|||||||
(name: _:
|
(name: _:
|
||||||
nixpkgs.lib.nixosSystem {
|
nixpkgs.lib.nixosSystem {
|
||||||
modules = [
|
modules = [
|
||||||
clan.nixosModules.clanCore
|
self.nixosModules.clanCore
|
||||||
(machineSettings name)
|
(machineSettings name)
|
||||||
(machines.${name} or { })
|
(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;
|
specialArgs = specialArgs;
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user