feat(rpi4): add home-assistant
This commit is contained in:
parent
358aa776c0
commit
806a3e23cf
2 changed files with 55 additions and 0 deletions
21
rpi4.nix
21
rpi4.nix
|
@ -8,6 +8,7 @@
|
|||
./system/i18n.nix
|
||||
./services/jellyfin.nix
|
||||
./modules/cfdyndns.nix
|
||||
./services/home-assistant.nix
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
@ -41,6 +42,26 @@
|
|||
records = [ "home.felschr.com" ];
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
|
||||
recommendedTlsSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedGzipSettings = true;
|
||||
recommendedProxySettings = true;
|
||||
|
||||
virtualHosts = {
|
||||
"home.felschr.com" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:8123";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.zsh.enable = true;
|
||||
|
||||
services.openssh.enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue