Compare commits

..

2 Commits

Author SHA1 Message Date
cfd07e3169
⬆️ version bump 2022-10-06 14:57:12 +01:00
b99248b210
add traefik for internal tls 2022-10-06 14:56:18 +01:00
3 changed files with 49 additions and 13 deletions

24
flake.lock generated
View File

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1664143588, "lastModified": 1664210064,
"narHash": "sha256-I1qaa8VMISprKulco2bxiIJUaz1NGiKmlsQuM996yzM=", "narHash": "sha256-df6nKVZe/yAhmJ9csirTPahc0dldwm3HBhCVNA6qWr0=",
"owner": "lnl7", "owner": "lnl7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "95ba7e548d55e74c36369dbd6a4bfe99a543c835", "rev": "02d2551c927b7d65ded1b3c7cd13da5cc7ae3fcf",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -110,11 +110,11 @@
"utils": "utils_2" "utils": "utils_2"
}, },
"locked": { "locked": {
"lastModified": 1664146938, "lastModified": 1664983332,
"narHash": "sha256-fIvsJ3qWiD6o3qH9iU66OsL8uG5C1FGXcuaNEctJv8M=", "narHash": "sha256-KyQvgFRwk3qW3Qr+lO5UDqfpST/HaCJY1yB7wPgPUqo=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "9e7394523eb4f298528d457e316fc752bdf07151", "rev": "1a8e35d2e53ed2ccd9818fad9c9478d56c655661",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -125,11 +125,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1663229557, "lastModified": 1665040200,
"narHash": "sha256-1uU4nsDLXKG0AHc/VCsNBAEPkTA/07juYhcEWRb1O1E=", "narHash": "sha256-glqL6yj3aUm40y92inzRmowGt9aIrUrpBX7eBAMic4I=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "a0df6cd6e199df4a78c833c273781ea92fa62cfb", "rev": "47fd70289491c1f0c0d9a1f44fb5a9e2801120c9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -189,11 +189,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1664177230, "lastModified": 1664904529,
"narHash": "sha256-eyo88ffm16I0K9cdcePbOsQg4MDjf1EgIdkGTLB/7iA=", "narHash": "sha256-mGlB/SQR4E9jb7fOOxCTJlwL6Mk1Dpyvi4UrOXL6C18=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "ff9793cfd1a25145a7e591af604675b3d6f68987", "rev": "b7a47253e0c8cb04c0a3f8ed3149e90229e62884",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -105,6 +105,42 @@
networking.firewall.enable = false; networking.firewall.enable = false;
walkah.coredns = { enable = true; }; walkah.coredns = { enable = true; };
services.traefik = {
enable = true;
group = "docker";
staticConfigOptions = {
api = { };
certificatesResolvers = {
myresolver = {
acme = {
email = "walkah@walkah.net";
storage = "/var/lib/traefik/acme.json";
dnsChallenge = {
provider = "cloudflare";
};
};
};
};
entryPoints = {
web = {
address = ":80";
};
websecure = {
address = ":443";
};
};
providers = {
docker = { };
};
};
};
systemd.services.traefik = {
serviceConfig = {
EnvironmentFile = "/var/lib/traefik/env";
};
};
services = { services = {
borgbackup.jobs."borgbase" = { borgbackup.jobs."borgbase" = {

View File

@ -5,7 +5,7 @@
virtualisation.oci-containers = { virtualisation.oci-containers = {
containers = { containers = {
home-assistant = { home-assistant = {
image = "ghcr.io/home-assistant/home-assistant:2022.9.7"; image = "ghcr.io/home-assistant/home-assistant:2022.10.0";
volumes = volumes =
[ "/var/lib/hass:/config" "/etc/localtime:/etc/localtime:ro" ]; [ "/var/lib/hass:/config" "/etc/localtime:/etc/localtime:ro" ];
extraOptions = [ "--privileged" "--network=host" ]; extraOptions = [ "--privileged" "--network=host" ];