alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
hass: add autoupdate script
author
lassulus
date
2 years ago
(Mar 22, 2024, 2:10 PM CET)
commit
ae5758cf
ae5758cf02a7a06af215a27054e254124c008313
parent
a5b64386
a5b64386f5fcab464a76a1c7a6f962cb426e065f
+10
-2
1 changed file
Expand all
Collapse all
Unified
Split
2configs
hass
default.nix
+10
-2
2configs/hass/default.nix
View file
Reviewed
···
1
1
-
{ pkgs, ... }:
1
1
+
{ config, pkgs, ... }:
2
2
{
3
3
imports = [
4
4
./zigbee.nix
···
14
14
{ predicate = "-i wiregrill -p tcp --dport 8123"; target = "ACCEPT"; } # hass
15
15
];
16
16
17
17
-
# TODO add auto update
17
17
+
systemd.services.hass-update = {
18
18
+
startAt = "daily";
19
19
+
script = ''
20
20
+
${pkgs.podman}/bin/podman pull ${config.virtualisation.oci-containers.containers.homeassistant.image}
21
21
+
${pkgs.podman}/bin/podman stop homeassistant
22
22
+
${pkgs.podman}/bin/podman start homeassistant
23
23
+
'';
24
24
+
};
25
25
+
18
26
virtualisation.oci-containers = {
19
27
backend = "podman";
20
28
containers.homeassistant = {