reo101
2941536b80
Also stop passing `outputs` around, prefer `inputs.self` Also put all `auto_` in `readOnly` `internal` options - `autoModules`, `autoConfigurations` and `autoPackages` Do not export packages as overlay (causes an infinite recursion) - this is documented on the two places it has effect on -- in `./overlays/default.nix` and `./modules/flake/configurations.nix` -- in `autoConfigurations` we manually extend `pkgs` with the flake packages Allow packages to say what `systems` they are compatible with - See `./pkgs/swww/systems.nix` - disabled for all systems - See `./pkgs/pngpaste/systems.nix` - enabled only for `darwin` targets
39 lines
817 B
Nix
39 lines
817 B
Nix
{ inputs, lib, pkgs, config, ... }:
|
|
{
|
|
environment.systemPackages = with pkgs; [
|
|
];
|
|
|
|
nixpkgs.config.permittedInsecurePackages = [
|
|
"openssl-1.1.1w"
|
|
];
|
|
|
|
services.home-assistant = {
|
|
enable = true;
|
|
extraComponents = [
|
|
# Components required to complete the onboarding
|
|
"esphome"
|
|
"met"
|
|
"radio_browser"
|
|
"tuya"
|
|
];
|
|
config = {
|
|
# Includes dependencies for a basic setup
|
|
# https://www.home-assistant.io/integrations/default_config/
|
|
default_config = { };
|
|
mobile_app = { };
|
|
map = { };
|
|
};
|
|
};
|
|
|
|
networking.firewall =
|
|
lib.pipe
|
|
[ "TCP" "UDP" ]
|
|
[
|
|
(builtins.map
|
|
(protocol:
|
|
lib.nameValuePair
|
|
"allowed${protocol}Ports"
|
|
[ 8123 ]))
|
|
builtins.listToAttrs
|
|
];
|
|
}
|