forked from foxora/nix
nixcon 2026 <3
This commit is contained in:
parent
d1113e546c
commit
b7eb55c821
7 changed files with 105 additions and 106 deletions
45
snow.nix
45
snow.nix
|
|
@ -3,9 +3,7 @@ cerulean.mkNexus ./. (self: {
|
|||
nexus = {
|
||||
args = {inherit inputs;};
|
||||
|
||||
modules = with inputs; [
|
||||
home-manager.nixosModules.home-manager
|
||||
];
|
||||
modules = with inputs; [];
|
||||
|
||||
base = inputs.nixpkgs;
|
||||
|
||||
|
|
@ -18,12 +16,11 @@ cerulean.mkNexus ./. (self: {
|
|||
(self.nexus)
|
||||
groups
|
||||
;
|
||||
in
|
||||
{
|
||||
in {
|
||||
nixarawrui = {
|
||||
system = "x86_64-linux";
|
||||
|
||||
base = inputs.nixpkgs-unstable;
|
||||
# base = inputs.nixpkgs-unstable;
|
||||
|
||||
modules = with inputs; [
|
||||
sddm-silent.nixosModules.default
|
||||
|
|
@ -46,7 +43,7 @@ cerulean.mkNexus ./. (self: {
|
|||
autostart = true;
|
||||
|
||||
config = {
|
||||
imports = [ ./vms/home-assistant/default.nix ];
|
||||
imports = [./vms/home-assistant/default.nix];
|
||||
|
||||
networking.hostName = "home-assistant";
|
||||
|
||||
|
|
@ -59,26 +56,32 @@ cerulean.mkNexus ./. (self: {
|
|||
mem = 4096; # 4GB
|
||||
vcpu = 2;
|
||||
|
||||
interfaces = [{
|
||||
type = "tap";
|
||||
id = "vm-hass";
|
||||
mac = "0a:00:a0:70:01:01";
|
||||
}];
|
||||
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
|
||||
}];
|
||||
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;
|
||||
}];
|
||||
ipv4.addresses = [
|
||||
{
|
||||
address = "10.16.1.127";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue