Add netbox service to curiosity
This commit is contained in:
parent
aa5924e620
commit
46ac6032ae
2 changed files with 56 additions and 35 deletions
25
flake.nix
25
flake.nix
|
@ -88,10 +88,10 @@
|
|||
{
|
||||
microvm = {
|
||||
autostart = [
|
||||
"jellyfin"
|
||||
"netbox"
|
||||
];
|
||||
vms = {
|
||||
jellyfin = {
|
||||
netbox = {
|
||||
flake = self;
|
||||
updateFlake = "git+file:///etc/nixos";
|
||||
};
|
||||
|
@ -188,6 +188,27 @@
|
|||
}
|
||||
];
|
||||
};
|
||||
netbox = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
microvm.nixosModules.microvm
|
||||
"${inputs.self}/systems"
|
||||
"${inputs.self}/services"
|
||||
{
|
||||
services.vm_netbox = {
|
||||
enable = true;
|
||||
};
|
||||
services.vm = {
|
||||
enable = true;
|
||||
hostname = "netbox";
|
||||
vm_ip = "192.168.1.45";
|
||||
vm_cpu = 2;
|
||||
vm_mem = 2048;
|
||||
macAddr = "02:00:00:00:00:45";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
authentik = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue