forked from foxora/nix
migrate to experimental snow.flake schema
This commit is contained in:
parent
a477f18fa6
commit
6b509b7b41
3 changed files with 44 additions and 50 deletions
46
snow.nix
46
snow.nix
|
|
@ -1,22 +1,20 @@
|
|||
{cerulean, ...} @ inputs:
|
||||
cerulean.mkNexus ./. (self: {
|
||||
nexus = {
|
||||
args = {inherit inputs;};
|
||||
|
||||
modules = with inputs; [];
|
||||
|
||||
{
|
||||
inputs,
|
||||
cerulean,
|
||||
...
|
||||
} @ args: {
|
||||
nodes = {
|
||||
base = inputs.nixpkgs;
|
||||
homeManager = inputs.home-manager;
|
||||
|
||||
args = {inherit inputs;};
|
||||
modules = with inputs; [];
|
||||
|
||||
groups = {
|
||||
servers = {};
|
||||
};
|
||||
|
||||
nodes = let
|
||||
inherit
|
||||
(self.nexus)
|
||||
groups
|
||||
;
|
||||
in {
|
||||
nodes = {
|
||||
nixarawrui = {
|
||||
system = "x86_64-linux";
|
||||
|
||||
|
|
@ -30,7 +28,7 @@ cerulean.mkNexus ./. (self: {
|
|||
arcturus = {
|
||||
system = "x86_64-linux";
|
||||
|
||||
groups = [
|
||||
groups = groups: [
|
||||
groups.servers
|
||||
];
|
||||
|
||||
|
|
@ -53,6 +51,7 @@ cerulean.mkNexus ./. (self: {
|
|||
microvm = {
|
||||
hypervisor = "qemu";
|
||||
|
||||
<<<<<<< Updated upstream
|
||||
# needed to get interface working
|
||||
qemu.extraArgs = [
|
||||
"-monitor" "unix:/var/lib/microvms/home-assistant/monitor.sock,server,nowait"
|
||||
|
|
@ -60,6 +59,21 @@ cerulean.mkNexus ./. (self: {
|
|||
"-serial" "chardev:serial1"
|
||||
];
|
||||
|
||||
=======
|
||||
<<<<<<< Updated upstream
|
||||
=======
|
||||
# needed to get interface working
|
||||
qemu.extraArgs = [
|
||||
"-monitor"
|
||||
"unix:/var/lib/microvms/home-assistant/monitor.sock,server,nowait"
|
||||
"-chardev"
|
||||
"socket,id=serial1,path=/var/lib/microvms/home-assistant/serial.sock,server=on,wait=off"
|
||||
"-serial"
|
||||
"chardev:serial1"
|
||||
];
|
||||
|
||||
>>>>>>> Stashed changes
|
||||
>>>>>>> Stashed changes
|
||||
# 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
|
||||
|
|
@ -110,7 +124,7 @@ cerulean.mkNexus ./. (self: {
|
|||
lyra = {
|
||||
system = "x86_64-linux";
|
||||
|
||||
groups = [
|
||||
groups = groups: [
|
||||
groups.servers
|
||||
];
|
||||
|
||||
|
|
@ -122,4 +136,4 @@ cerulean.mkNexus ./. (self: {
|
|||
};
|
||||
};
|
||||
};
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue