Added storage and home assistant
This commit is contained in:
31
modules/home/containers/homeassistant.nix
Normal file
31
modules/home/containers/homeassistant.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.settings.containers.homeassistant;
|
||||
in {
|
||||
options = {
|
||||
settings.containers.homeassistant.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Enable storage configuration
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.podman.containers.homeassistant = {
|
||||
image = "ghcr.io/home-assistant/home-assistant:stable";
|
||||
network = "proxy";
|
||||
volumes = [
|
||||
"%h/containers/homeassistant/config:/config"
|
||||
];
|
||||
userNS = "keep-id";
|
||||
environment = {
|
||||
TZ = "Europe/Amsterdam";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user