feat(hostSpec): add extraCfg to hostSpec and imports to nixosSystem
This commit is contained in:
parent
5ea055f053
commit
6a1aa5f30b
2 changed files with 12 additions and 9 deletions
|
@ -19,7 +19,8 @@ let
|
|||
name = hostName;
|
||||
value = lib.nixosSystem {
|
||||
specialArgs = { inherit inputs hostName; };
|
||||
modules = [ value ];
|
||||
#TODO: add profiles system
|
||||
modules = [ value.extraCfg or { } ];
|
||||
};
|
||||
};
|
||||
in
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
flake.hostSpec.hosts = {
|
||||
"nixos/test".imports = with config.flake.modules.nixos; [ networking ];
|
||||
"nixos/test".config = {
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
fileSystems."/" = {
|
||||
device = "/dev/sda1";
|
||||
fsType = "ext4";
|
||||
"nixos/test".extraCfg = {
|
||||
imports = with config.flake.modules.nixos; [ networking ];
|
||||
config = {
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
fileSystems."/" = {
|
||||
device = "/dev/sda1";
|
||||
fsType = "ext4";
|
||||
};
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
system.stateVersion = "25.05";
|
||||
};
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
system.stateVersion = "25.05";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue