1
0
Fork 0
forked from foxora/nix

butterfly gonna fix everything for me :33333333333

This commit is contained in:
foxora 2026-02-17 04:04:32 +00:00
parent 3fd01411a1
commit a9510e1723
7 changed files with 220 additions and 84 deletions

View file

@ -1,14 +1,15 @@
{cerulean, ...} @ inputs:
cerulean.mkNexus ./. (self: {
nexus = {
specialArgs = {inherit inputs;};
args = {inherit inputs;};
extraModules = with inputs; [
modules = with inputs; [
home-manager.nixosModules.home-manager
];
base = inputs.nixpkgs;
groups = {
unstable-base = {};
servers = {};
};
@ -22,11 +23,9 @@ cerulean.mkNexus ./. (self: {
nixarawrui = {
system = "x86_64-linux";
groups = [
groups.unstable-base
];
base = inputs.nixpkgs-unstable;
extraModules = with inputs; [
modules = with inputs; [
sddm-silent.nixosModules.default
];
};
@ -38,6 +37,56 @@ cerulean.mkNexus ./. (self: {
groups.servers
];
modules = with inputs; [
microvm.nixosModules.host
{
microvm.vms = {
home-assistant = {
autostart = true;
config = {
imports = [ ./vms/home-assistant/default.nix ];
networking.hostName = "home-assistant";
microvm = {
hypervisor = "qemu";
# memory cannot be 2GB so i doubled it and used 4GB:
# https://github.com/microvm-nix/microvm.nix/issues/171
# TODO: can be fixed by turning off acpi in qemu
mem = 4096; # 4GB
vcpu = 2;
interfaces = [{
type = "tap";
id = "vm-hass";
mac = "0a:00:a0:70:01:01";
}];
volumes = [{
image = "/var/lib/microvms/home-assistant/data.img";
mountPoint = "/var/lib/hass";
size = 16384; # 16GB
}];
};
networking = {
interfaces.eth0 = {
useDHCP = false;
ipv4.addresses = [{
address = "10.16.1.127";
prefixLength = 24;
}];
};
};
};
};
};
}
];
deploy.ssh = {
host = "10.16.1.163";
port = 2222;