summary refs log tree commit diff
path: root/nixos/modules/services/home-automation
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-02-22 12:04:04 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-02-22 12:04:04 +0100
commit1090fcb7c937e6659f93ffbd7794e9f57de71e42 (patch)
treef97638bed4863c89c706ea6c26ac019e35af5fbb /nixos/modules/services/home-automation
parent38346f64616c3176f73ad0f20e51557ec0f3d75d (diff)
downloadnixpkgs-1090fcb7c937e6659f93ffbd7794e9f57de71e42.tar
nixpkgs-1090fcb7c937e6659f93ffbd7794e9f57de71e42.tar.gz
nixpkgs-1090fcb7c937e6659f93ffbd7794e9f57de71e42.tar.bz2
nixpkgs-1090fcb7c937e6659f93ffbd7794e9f57de71e42.tar.lz
nixpkgs-1090fcb7c937e6659f93ffbd7794e9f57de71e42.tar.xz
nixpkgs-1090fcb7c937e6659f93ffbd7794e9f57de71e42.tar.zst
nixpkgs-1090fcb7c937e6659f93ffbd7794e9f57de71e42.zip
nixos/home-assistant: allow null config value
While the documentation said to set this to null, in case an imperative
config was supposed to be used, this was not possible with the typing in
place.
Diffstat (limited to 'nixos/modules/services/home-automation')
-rw-r--r--nixos/modules/services/home-automation/home-assistant.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/home-automation/home-assistant.nix b/nixos/modules/services/home-automation/home-assistant.nix
index f4197650ab2..5a40baf7fb1 100644
--- a/nixos/modules/services/home-automation/home-assistant.nix
+++ b/nixos/modules/services/home-automation/home-assistant.nix
@@ -135,7 +135,7 @@ in {
     };
 
     config = mkOption {
-      type = types.submodule {
+      type = types.nullOr (types.submodule {
         freeformType = format.type;
         options = {
           # This is a partial selection of the most common options, so new users can quickly
@@ -244,7 +244,7 @@ in {
             };
           };
         };
-      };
+      });
       example = literalExpression ''
         {
           homeassistant = {