mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
feat: extern nixosModules
This commit is contained in:
parent
cb932b65cc
commit
0116ecf47f
14 changed files with 690 additions and 2 deletions
15
systems/extern-test/default.nix
Normal file
15
systems/extern-test/default.nix
Normal 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;
|
||||
};
|
||||
});
|
||||
}
|
||||
28
systems/extern-test/nixos.nix
Normal file
28
systems/extern-test/nixos.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue