mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
feat(home-assistant): store long-lat in age secret
This commit is contained in:
parent
713853108c
commit
3b9006077e
3 changed files with 21 additions and 6 deletions
|
|
@ -17,6 +17,13 @@ in {
|
|||
mosquitto-zigbee2mqtt.rekeyFile = ../../secrets/hosts/homelab/mosquitto-zigbee2mqtt.age;
|
||||
mosquitto-sas.rekeyFile = ../../secrets/hosts/homelab/mosquitto-sas.age;
|
||||
mosquitto-ha.rekeyFile = ../../secrets/hosts/homelab/mosquitto-ha.age;
|
||||
hassSecrets = {
|
||||
rekeyFile = ../../secrets/hosts/homelab/hass.yaml.age;
|
||||
path = "${config.services.home-assistant.configDir}/secrets.yaml";
|
||||
mode = "400";
|
||||
owner = "hass";
|
||||
group = "hass";
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
|
|
@ -56,8 +63,8 @@ in {
|
|||
|
||||
home-assistant = {
|
||||
enable = true;
|
||||
package = pkgsUnstable.home-assistant;
|
||||
customComponents = with pkgsUnstable.home-assistant-custom-components; [
|
||||
package = pkgs.home-assistant;
|
||||
customComponents = with pkgs.home-assistant-custom-components; [
|
||||
adaptive_lighting
|
||||
sleep_as_android
|
||||
(pkgs.buildHomeAssistantComponent rec {
|
||||
|
|
@ -86,9 +93,9 @@ in {
|
|||
config = {
|
||||
homeassistant = {
|
||||
name = "Home";
|
||||
latitude = "56.2";
|
||||
longitude = "10.2";
|
||||
elevation = "0";
|
||||
latitude = "!secret latitude";
|
||||
longitude = "!secret longitude";
|
||||
elevation = "!secret elevation";
|
||||
unit_system = "metric";
|
||||
time_zone = "Europe/Copenhagen";
|
||||
};
|
||||
|
|
@ -102,7 +109,7 @@ in {
|
|||
"127.0.0.1"
|
||||
"::1"
|
||||
];
|
||||
base_url = "https://ha.nickolaj.com";
|
||||
# base_url = "https://ha.nickolaj.com";
|
||||
};
|
||||
|
||||
automation = "!include automations.yaml";
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-ed25519 uxq+Zw reTHDLwj8jaI7giq5hw77+cvVurKP2vR8KeonjAJ+nY
|
||||
Pe6Df2WQawEnCp5GVCzegzEJaK868bhwZm2hEEwAc/I
|
||||
-> 6`Rk-grease K=O ttrh.^ [o4vdGR
|
||||
9xDUT+18cwMzzTgWlQzWBAniL9GAv+e4rmhwu3Vdwdh/mBeXJdfgEMxTqyRZk9TX
|
||||
BSW+CifV9iGZXmYm9b+NzKwWJUQ
|
||||
--- /NXPE/9QIghJoaXFNtmPMvs78dD2RdXbDWiBnwgXIzo
|
||||
£‹äÂe’Û•r³ü12„Gªˆ ¸[îsM[#¶Ô<C2B6>±ª,»ÁI<ö<>ÿ*~aýÎY³vYX½éŽOQÒøKÎ:°#g&:£õmÖHÀççK‹Ç·
žEZ·-þúpjËà˜Ý!¿]
|
||||
BIN
secrets/hosts/homelab/hass.yaml.age
Normal file
BIN
secrets/hosts/homelab/hass.yaml.age
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue