feat: extern nixosModules

This commit is contained in:
arcnmx 2024-02-19 11:29:46 -08:00
parent cb932b65cc
commit 0116ecf47f
14 changed files with 690 additions and 2 deletions

View file

@ -0,0 +1,15 @@
{ inputs, lib, ... }: let
inherit (lib.modules) mkForce;
in {
arch = "x86_64";
type = "NixOS";
modules = mkForce [
./nixos.nix
];
builder = mkForce ({ modules, system, specialArgs, ... }: inputs.nixpkgs.lib.nixosSystem {
inherit modules system;
specialArgs = {
extern'test'inputs = specialArgs.inputs;
};
});
}

View file

@ -0,0 +1,28 @@
{
extern'test'inputs,
...
}: let
inherit (extern'test'inputs.self) nixosModules;
in {
imports = [
nixosModules.default
];
config = {
gensokyo-zone = {
nix = {
enable = true;
builder.enable = true;
};
kyuuto = {
enable = true;
shared.enable = true;
};
# TODO: users?
};
# this isn't a real machine...
boot.isContainer = true;
system.stateVersion = "23.11";
};
}