Feature: Init stack.nix for homepage.

This commit is contained in:
Joey Hafner 2025-02-01 00:12:06 -08:00
parent 513f278be1
commit 76181301c9
Signed by: Jafner
GPG Key ID: 6D9A24EF2F389E55
3 changed files with 16 additions and 2 deletions

View File

@ -1 +0,0 @@
DOCKER_DATA=/home/admin/data/homepage/tasmota

View File

@ -5,7 +5,7 @@ services:
networks: networks:
- web - web
volumes: volumes:
- $DOCKER_DATA/logs:/app/config/logs - $APPDATA/logs:/app/config/logs
- ./icons/:/app/public/icons - ./icons/:/app/public/icons
- ./config:/app/config/ - ./config:/app/config/
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock

View File

@ -0,0 +1,15 @@
{ sys, ... }: let stack = "homepage"; in {
home-manager.users."${sys.username}".home.file = {
"${stack}" = {
enable = true;
recursive = true;
source = ./.;
target = "stacks/${stack}/";
};
"${stack}/.env" = {
enable = true;
text = ''APPDATA=${sys.dataDirs.appdata}/${stack}'';
target = "stacks/${stack}/.env";
};
};
}