mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
machines/newton: migrate from /srv to /data
This commit is contained in:
parent
d2a097ce89
commit
718877b329
3 changed files with 14 additions and 14 deletions
|
@ -52,12 +52,12 @@
|
||||||
mountpoint = "/";
|
mountpoint = "/";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
srv = {
|
data = {
|
||||||
size = "350G";
|
size = "350G";
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "ext4";
|
format = "ext4";
|
||||||
mountpoint = "/srv";
|
mountpoint = "/data";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
swap = {
|
swap = {
|
||||||
|
|
|
@ -60,7 +60,7 @@ in
|
||||||
# music streaming server
|
# music streaming server
|
||||||
navidrome = {
|
navidrome = {
|
||||||
enable = true;
|
enable = true;
|
||||||
musicFolder = "/srv/data/music";
|
musicFolder = "/data/music";
|
||||||
};
|
};
|
||||||
# self-hosted cloud
|
# self-hosted cloud
|
||||||
nextcloud = {
|
nextcloud = {
|
||||||
|
@ -73,7 +73,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
passwordFile = secrets."paperless/password".path;
|
passwordFile = secrets."paperless/password".path;
|
||||||
extraConfig.PAPERLESS_ADMIN_USER = "felix";
|
extraConfig.PAPERLESS_ADMIN_USER = "felix";
|
||||||
mediaDir = "/srv/data/docs";
|
mediaDir = "/data/docs";
|
||||||
};
|
};
|
||||||
# RSS aggregator and reader
|
# RSS aggregator and reader
|
||||||
freshrss = {
|
freshrss = {
|
||||||
|
@ -97,7 +97,7 @@ in
|
||||||
photoprism = {
|
photoprism = {
|
||||||
enable = true;
|
enable = true;
|
||||||
passwordFile = secrets."photoprism/password".path;
|
passwordFile = secrets."photoprism/password".path;
|
||||||
originalsPath = "/srv/data/photos";
|
originalsPath = "/data/photos";
|
||||||
settings = {
|
settings = {
|
||||||
PHOTOPRISM_ADMIN_USER = "felix";
|
PHOTOPRISM_ADMIN_USER = "felix";
|
||||||
PHOTOPRISM_SPONSOR = "true";
|
PHOTOPRISM_SPONSOR = "true";
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
|
|
||||||
# make sure folders exist writable
|
# make sure folders exist writable
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"d /srv/data/ 0755 syncthing syncthing"
|
"d /data/ 0755 syncthing syncthing"
|
||||||
"d /srv/data/computer 0755 syncthing syncthing"
|
"d /data/computer 0755 syncthing syncthing"
|
||||||
"d /srv/data/phone 0755 syncthing syncthing"
|
"d /data/phone 0755 syncthing syncthing"
|
||||||
"d /srv/data/music 0755 syncthing syncthing"
|
"d /data/music 0755 syncthing syncthing"
|
||||||
"d /srv/data/photos 0755 syncthing syncthing"
|
"d /data/photos 0755 syncthing syncthing"
|
||||||
];
|
];
|
||||||
|
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
folders = {
|
folders = {
|
||||||
"Computer" = {
|
"Computer" = {
|
||||||
id = "djdxo-1akub";
|
id = "djdxo-1akub";
|
||||||
path = "/srv/data/computer";
|
path = "/data/computer";
|
||||||
devices = [
|
devices = [
|
||||||
"thinkman"
|
"thinkman"
|
||||||
"birdman"
|
"birdman"
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
};
|
};
|
||||||
"Phone" = {
|
"Phone" = {
|
||||||
id = "4hds7-gpypp";
|
id = "4hds7-gpypp";
|
||||||
path = "/srv/data/phone";
|
path = "/data/phone";
|
||||||
devices = [
|
devices = [
|
||||||
"thinkman"
|
"thinkman"
|
||||||
"birdman"
|
"birdman"
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
};
|
};
|
||||||
"Music" = {
|
"Music" = {
|
||||||
id = "mphdq-n6q7y";
|
id = "mphdq-n6q7y";
|
||||||
path = "/srv/data/music";
|
path = "/data/music";
|
||||||
watch = false;
|
watch = false;
|
||||||
devices = [
|
devices = [
|
||||||
"thinkman"
|
"thinkman"
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
};
|
};
|
||||||
"Pictures" = {
|
"Pictures" = {
|
||||||
id = "cujyo-yiabu";
|
id = "cujyo-yiabu";
|
||||||
path = "/srv/data/photos";
|
path = "/data/photos";
|
||||||
watch = false;
|
watch = false;
|
||||||
devices = [
|
devices = [
|
||||||
"thinkman"
|
"thinkman"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue