Personal Nix setup
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add extra home-assistant options

+11 -2
+11 -2
modules/server/home-assistant.nix
··· 25 25 description = "Home Assistant Revision"; 26 26 type = types.str; 27 27 }; 28 + 29 + extraOptions = mkOption { 30 + default = []; 31 + description = "Extra podman options"; 32 + type = types.listOf types.str; 33 + }; 28 34 }; 29 35 30 36 config = mkIf (cfg.enable && cfgRoot.enable) { ··· 37 43 group = "hass"; 38 44 }; 39 45 }; 46 + 47 + system.activationScripts.makeHomeAssistantFolder = lib.stringAfter [ "var" ] '' 48 + mkdir -p /var/lib/home-assistant 49 + ''; 40 50 41 51 virtualisation.oci-containers = { 42 52 containers.hass = rec { ··· 70 80 "--userns=keep-id" 71 81 "--hostuser=hass" 72 82 "--runtime=runc" 73 - "--device=/dev/ttyUSB0" 74 83 "--network=host" 75 - ]; 84 + ] ++ cfg.extraOptions; 76 85 }; 77 86 }; 78 87 };