mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-10 12:36:42 +01:00
polish server-dockers (media server) config
This commit is contained in:
@@ -1,5 +1,22 @@
|
|||||||
After nixos installation and config files in place, run the `../install-new-desktop.sh` script to put in place all the config files (vim,nvim,tmux,i3,etc)
|
After nixos installation and config files in place, run the `../install-new-desktop.sh` script to put in place all the config files (vim,nvim,tmux,i3,etc)
|
||||||
|
|
||||||
|
Go back to a previous generation:
|
||||||
|
```
|
||||||
|
# list stored generations
|
||||||
|
sudo nixos-rebuild list-generations
|
||||||
|
|
||||||
|
# go to generation number 42
|
||||||
|
sudo nix-env --switch-generation 42 -p /nix/var/nix/profiles/system
|
||||||
|
|
||||||
|
# use it
|
||||||
|
sudo /nix/var/nix/profiles/system/bin/switch-to-configuration switch
|
||||||
|
|
||||||
|
# go back to the latest generation (suppose is 84)
|
||||||
|
sudo nix-env --switch-generation 82 -p /nix/var/nix/profiles/system
|
||||||
|
|
||||||
|
# to quickly go back just one step:
|
||||||
|
sudo nixos-rebuild rollback
|
||||||
|
```
|
||||||
|
|
||||||
From time to time run the following commands to remove stuff from old generations
|
From time to time run the following commands to remove stuff from old generations
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -39,12 +39,11 @@
|
|||||||
icon: wallabag.png
|
icon: wallabag.png
|
||||||
href: http://192.168.1.155:8098
|
href: http://192.168.1.155:8098
|
||||||
description: Wallabag Read It Later
|
description: Wallabag Read It Later
|
||||||
- pi-hole:
|
- HomeAssistant:
|
||||||
icon: pi-hole.png
|
icon: home-assistant.png
|
||||||
href: https://192.168.1.155/admin/
|
href: http://192.168.1.148:8123
|
||||||
description: pi-hole admin panel
|
description: Open Home Assistant page.
|
||||||
widget:
|
# - Vosk:
|
||||||
type: pihole
|
# icon: vosk.png
|
||||||
url: http://192.168.1.155
|
# href: http://192.168.1.155:8101
|
||||||
version: 6 # required if running v6 or higher, defaults to 5
|
# description: voice to text
|
||||||
key: YOUR_PASSWORD_HERE # password
|
|
||||||
|
|||||||
@@ -11,3 +11,7 @@ background:
|
|||||||
brightness: 50 # 0, 50, 75... see https://tailwindcss.com/docs/backdrop-brightness
|
brightness: 50 # 0, 50, 75... see https://tailwindcss.com/docs/backdrop-brightness
|
||||||
opacity: 100 # 0-100
|
opacity: 100 # 0-100
|
||||||
|
|
||||||
|
providers:
|
||||||
|
openweathermap: openweathermapapikey
|
||||||
|
weatherapi: weatherapiapikey
|
||||||
|
|
||||||
|
|||||||
@@ -12,8 +12,13 @@
|
|||||||
- resources:
|
- resources:
|
||||||
cpu: true
|
cpu: true
|
||||||
memory: true
|
memory: true
|
||||||
|
cputemp: true
|
||||||
disk: /
|
disk: /
|
||||||
uptime: true
|
uptime: true
|
||||||
|
- resources:
|
||||||
|
label: "hard drive"
|
||||||
|
expanded: true
|
||||||
|
disk: /app/config
|
||||||
|
|
||||||
- search:
|
- search:
|
||||||
provider: duckduckgo
|
provider: duckduckgo
|
||||||
|
|||||||
@@ -31,7 +31,8 @@
|
|||||||
# - slskd: 8099
|
# - slskd: 8099
|
||||||
# - metube: 8100
|
# - metube: 8100
|
||||||
# - qbittorrent: 8080
|
# - qbittorrent: 8080
|
||||||
# - homepage: 3000
|
# - homepage: 8000
|
||||||
|
# - grafana: 3000
|
||||||
|
|
||||||
services:
|
services:
|
||||||
jellyfin:
|
jellyfin:
|
||||||
@@ -45,7 +46,7 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
emby:
|
emby:
|
||||||
image: emby/embyserver_arm64v8
|
image: emby/embyserver # in rpi: emby/embyserver_arm64v8
|
||||||
container_name: emby
|
container_name: emby
|
||||||
ports:
|
ports:
|
||||||
- "8097:8096"
|
- "8097:8096"
|
||||||
@@ -117,48 +118,50 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
# metrics related:
|
# metrics related:
|
||||||
# prometheus:
|
prometheus:
|
||||||
# image: prom/prometheus:latest
|
image: prom/prometheus:latest
|
||||||
# container_name: prometheus
|
container_name: prometheus
|
||||||
# ports:
|
ports:
|
||||||
# - "9090:9090"
|
- "9090:9090"
|
||||||
# volumes:
|
volumes:
|
||||||
# - ./prometheus.yml:/etc/prometheus/prometheus.yml
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
||||||
# - prometheus_data:/prometheus
|
- prometheus_data:/prometheus
|
||||||
# networks:
|
networks:
|
||||||
# - monitoring
|
- monitoring
|
||||||
# restart: unless-stopped
|
restart: unless-stopped
|
||||||
#
|
|
||||||
# node-exporter:
|
node-exporter:
|
||||||
# image: prom/node-exporter:latest
|
image: prom/node-exporter:latest
|
||||||
# container_name: node-exporter
|
container_name: node-exporter
|
||||||
# ports:
|
ports:
|
||||||
# - "9100:9100"
|
- "9100:9100"
|
||||||
# networks:
|
volumes:
|
||||||
# - monitoring
|
- /:/host:ro
|
||||||
# restart: unless-stopped
|
networks:
|
||||||
#
|
- monitoring
|
||||||
# grafana:
|
restart: unless-stopped
|
||||||
# image: grafana/grafana:latest
|
|
||||||
# container_name: grafana
|
grafana:
|
||||||
# ports:
|
image: grafana/grafana:latest
|
||||||
# - "3000:3000"
|
container_name: grafana
|
||||||
# environment:
|
ports:
|
||||||
# - GF_SECURITY_ADMIN_PASSWORD=admin
|
- "3000:3000"
|
||||||
# volumes:
|
environment:
|
||||||
# - grafana_data:/var/lib/grafana
|
- GF_SECURITY_ADMIN_PASSWORD=YOUR_PASSWORD_HERE
|
||||||
# networks:
|
volumes:
|
||||||
# - monitoring
|
- grafana_data:/var/lib/grafana
|
||||||
# depends_on:
|
networks:
|
||||||
# - prometheus
|
- monitoring
|
||||||
# restart: unless-stopped
|
depends_on:
|
||||||
|
- prometheus
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
monitoring:
|
monitoring:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
||||||
#volumes:
|
volumes:
|
||||||
# prometheus_data:
|
prometheus_data:
|
||||||
# driver: local
|
driver: local
|
||||||
# grafana_data:
|
grafana_data:
|
||||||
# driver: local
|
driver: local
|
||||||
|
|||||||
Reference in New Issue
Block a user