Skip to content

Commit

Permalink
Use default recorder options
Browse files Browse the repository at this point in the history
  • Loading branch information
mcwitt committed Oct 4, 2024
1 parent e6ee97f commit 796134b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions modules/nixos/nixos/profiles/home-automation/recorder.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
config = lib.mkIf config.profiles.home-automation.enable {

services.home-assistant = {
config.recorder = {
db_url = "postgresql://@/hass"; # https://nixos.wiki/wiki/Home_Assistant#Using_PostgreSQL
auto_purge = true;
purge_keep_days = 30;
commit_interval = 5;
};
config.recorder.db_url = "postgresql://@/hass"; # https://nixos.wiki/wiki/Home_Assistant#Using_PostgreSQL
extraPackages = ps: [ ps.psycopg2 ];
};

Expand Down

0 comments on commit 796134b

Please sign in to comment.