init home assistant

This commit is contained in:
Noa Aarts 2024-11-09 11:20:48 +01:00
parent e5ffe5a1d2
commit fdd0c20725
Signed by: noa
GPG key ID: 1850932741EFF672
5 changed files with 222 additions and 14 deletions

View file

@ -20,6 +20,8 @@
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix")
./home-assistant.nix
../../common
];
@ -110,7 +112,10 @@
nixos-rebuild
git
];
script = ''nixos-rebuild switch --flake github:itepastra/nixconf#nuOS'';
script = ''
nixos-rebuild boot --flake github:itepastra/nixconf#nuOS
shutdown -r +5 "System will reboot in 5 minutes"
'';
serviceConfig = {
Type = "oneshot";
User = "root";
@ -121,6 +126,7 @@
after = [
"network-online.target"
];
restartIfChanged = false;
};
virtualisation = {
@ -259,6 +265,9 @@
};
"calendar.itepastra.nl" = proxy "itepastra.nl" "http://[::1]:29341";
# home-assistant proxy
"home.itepastra.nl" = proxy "itepastra.nl" "http://[::1]:8123";
};
};
};
@ -275,6 +284,7 @@
"itepastra.nl".extraDomainNames = [
"locked.itepastra.nl"
"calendar.itepastra.nl"
"home.itepastra.nl"
];
};
};