change mount point
This commit is contained in:
parent
91480629ae
commit
0646638710
4 changed files with 12 additions and 4 deletions
|
|
@ -14,14 +14,15 @@
|
||||||
Media = { enable = true; maxAgeDays = 7; };
|
Media = { enable = true; maxAgeDays = 7; };
|
||||||
Archive = { enable = true; maxAgeDays = 30; };
|
Archive = { enable = true; maxAgeDays = 30; };
|
||||||
Consume = { enable = true; maxAgeDays = 7; };
|
Consume = { enable = true; maxAgeDays = 7; };
|
||||||
|
DCIM = { enable = true; maxAgeDays = 7; path = "/mnt/storage/DCIM"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
services.scheduled-commands.dcim-consume = {
|
services.scheduled-commands.dcim-consume = {
|
||||||
enable = false;
|
enable = true;
|
||||||
description = "Move files in dcim consume folder to DCIM";
|
description = "Move files in dcim consume folder to DCIM";
|
||||||
interval = "*-*-* *:00/15:00";
|
interval = "*-*-* *:00/15:00";
|
||||||
commands = [
|
commands = [
|
||||||
"photo-move -d /home/yanlin/Consume/dcim /mnt/essd/DCIM"
|
"photo-move -d /home/yanlin/Consume/dcim /mnt/storage/DCIM"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
../../../modules/traefik.nix
|
../../../modules/traefik.nix
|
||||||
../../../modules/borg/client.nix
|
../../../modules/borg/client.nix
|
||||||
../../../modules/media/server.nix
|
../../../modules/media/server.nix
|
||||||
|
../../../modules/file-server/samba.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# GRUB bootloader with ZFS support
|
# GRUB bootloader with ZFS support
|
||||||
|
|
@ -43,13 +44,13 @@
|
||||||
"zfs.zfs_arc_min=2147483648" # 2GB min ARC size
|
"zfs.zfs_arc_min=2147483648" # 2GB min ARC size
|
||||||
];
|
];
|
||||||
|
|
||||||
fileSystems."/mnt/essd" = {
|
fileSystems."/mnt/storage" = {
|
||||||
device = "/dev/disk/by-uuid/20251dfb-f99a-4393-8c9e-0bb26d04b718";
|
device = "/dev/disk/by-uuid/20251dfb-f99a-4393-8c9e-0bb26d04b718";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"d /mnt/essd 0755 yanlin users -"
|
"d /mnt/storage 0755 yanlin users -"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Network configuration
|
# Network configuration
|
||||||
|
|
@ -142,6 +143,10 @@
|
||||||
deluge.enable = true;
|
deluge.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.samba-custom.shares = {
|
||||||
|
DCIM = "/mnt/storage/DCIM";
|
||||||
|
};
|
||||||
|
|
||||||
# Borg backup configuration
|
# Borg backup configuration
|
||||||
services.borg-client-custom = {
|
services.borg-client-custom = {
|
||||||
enable = false;
|
enable = false;
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@
|
||||||
Media = { enable = true; maxAgeDays = 7; };
|
Media = { enable = true; maxAgeDays = 7; };
|
||||||
Archive = { enable = true; maxAgeDays = 30; };
|
Archive = { enable = true; maxAgeDays = 30; };
|
||||||
Consume = { enable = true; maxAgeDays = 7; };
|
Consume = { enable = true; maxAgeDays = 7; };
|
||||||
|
DCIM = { enable = true; maxAgeDays = 7; path = "~/DCIM"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
services.scheduled-commands.aicloud-backup = {
|
services.scheduled-commands.aicloud-backup = {
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@ in
|
||||||
Media = mkFolderOptions "Media" { devices = lib.filter (d: d != "iphone") allDevices; };
|
Media = mkFolderOptions "Media" { devices = lib.filter (d: d != "iphone") allDevices; };
|
||||||
Archive = mkFolderOptions "Archive" {};
|
Archive = mkFolderOptions "Archive" {};
|
||||||
Consume = mkFolderOptions "Consume" {};
|
Consume = mkFolderOptions "Consume" {};
|
||||||
|
DCIM = mkFolderOptions "DCIM" { devices = serverDevices; };
|
||||||
};
|
};
|
||||||
enableGui = lib.mkOption {
|
enableGui = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue