Update FredOS-Mediaserver.nix

This commit is contained in:
ediblerope 2026-01-20 12:43:18 +00:00 committed by GitHub
parent d9145b3753
commit 37454f0b7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,40 +1,40 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") { #config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") {
fileSystems."/mnt/disk1" = { # fileSystems."/mnt/disk1" = {
device = "/dev/disk/by-uuid/90ae3493-38c1-4473-b409-e9d99c3b315e"; # device = "/dev/disk/by-uuid/90ae3493-38c1-4473-b409-e9d99c3b315e";
fsType = "ext4"; # fsType = "ext4";
options = [ "defaults" ]; # options = [ "defaults" ];
}; # };
fileSystems."/mnt/disk2" = { # fileSystems."/mnt/disk2" = {
device = "/dev/disk/by-uuid/7145223e-f285-424a-a114-cb0b1b64e068"; # device = "/dev/disk/by-uuid/7145223e-f285-424a-a114-cb0b1b64e068";
fsType = "ext4"; # fsType = "ext4";
options = [ "defaults" ]; # options = [ "defaults" ];
}; # };
fileSystems."/mnt/disk3" = { # fileSystems."/mnt/disk3" = {
device = "/dev/disk/by-uuid/613abe28-9af9-481e-9673-0eab1913b32c"; # device = "/dev/disk/by-uuid/613abe28-9af9-481e-9673-0eab1913b32c";
fsType = "ext4"; # fsType = "ext4";
options = [ "defaults" ]; # options = [ "defaults" ];
}; # };
fileSystems."/mnt/storage" = { # fileSystems."/mnt/storage" = {
device = "/mnt/disk1:/mnt/disk2:/mnt/disk3"; # device = "/mnt/disk1:/mnt/disk2:/mnt/disk3";
fsType = "fuse.mergerfs"; # fsType = "fuse.mergerfs";
options = [ # options = [
"defaults" # "defaults"
"allow_other" # "allow_other"
"use_ino" # "use_ino"
"cache.files=partial" # "cache.files=partial"
"dropcacheonclose=true" # "dropcacheonclose=true"
"category.create=mfs" # Most free space for new files # "category.create=mfs" # Most free space for new files
]; # ];
}; # };
# Create symlink from home to storage # Create symlink from home to storage
systemd.tmpfiles.rules = [ # systemd.tmpfiles.rules = [
"L+ /home/fred/storage - - - - /mnt/storage" # "L+ /home/fred/storage - - - - /mnt/storage"
"d /var/lib/nginx-proxy-manager/data 0755 root root -" # "d /var/lib/nginx-proxy-manager/data 0755 root root -"
"d /var/lib/nginx-proxy-manager/letsencrypt 0755 root root -" # "d /var/lib/nginx-proxy-manager/letsencrypt 0755 root root -"
]; # ];
# Basic system packages # Basic system packages
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [