aboutsummaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2026-01-01 09:32:38 -0800
committerFranck Cuny <franck@fcuny.net>2026-01-01 09:32:38 -0800
commit20404b7b77aaebcbfbd29e089a98f64e52090eaa (patch)
tree110011c81051bd9e700bc07c73b372bdd76e4f18 /profiles
parentcombine acme and reverse proxy configuration (diff)
downloadinfra-20404b7b77aaebcbfbd29e089a98f64e52090eaa.tar.gz
don't use jellyfin
Diffstat (limited to 'profiles')
-rw-r--r--profiles/storage-media.nix38
1 files changed, 36 insertions, 2 deletions
diff --git a/profiles/storage-media.nix b/profiles/storage-media.nix
index 29f6f27..9acb007 100644
--- a/profiles/storage-media.nix
+++ b/profiles/storage-media.nix
@@ -16,12 +16,46 @@ let
remoteUser = "nas";
in
{
- age.secrets.rsync-ssh-key.file = ../secrets/rsync-ssh-nas.age;
-
environment.systemPackages = with pkgs; [
+ ffmpeg
+ imagemagick
+ makemkv
mkvtoolnix-cli
];
+ services.samba = {
+ enable = true;
+ openFirewall = true;
+ settings = {
+ global = {
+ security = "user";
+ workgroup = "WORKGROUP";
+ "server string" = config.networking.hostName;
+ "netbios name" = config.networking.hostName;
+ "hosts allow" = "192.168.1.0/24 10.100.0.0/24 localhost";
+ "guest account" = "nobody";
+ "map to guest" = "bad user";
+ "use sendfile" = true;
+ "load printers" = false;
+ "vfs objects" = "fruit streams_xattr";
+ "fruit:metadata" = "stream";
+ "mangled names" = false;
+ };
+ media = {
+ path = "/data/media";
+ browseable = "yes";
+ "read only" = "yes";
+ "guest ok" = "yes";
+ };
+ };
+ };
+
+ services.avahi = {
+ enable = true;
+ nssmdns4 = true;
+ openFirewall = true;
+ };
+
systemd.timers = pkgs.lib.listToAttrs (
map (job: {
name = "rsync-backup-${job.name}";