Add plex setup

I want to move where the config is but eh
This commit is contained in:
Nathan van Doorn 2024-05-09 06:58:18 +00:00
parent e2a0b0bcde
commit 684cf02eee
2 changed files with 10 additions and 1 deletions

View File

@ -17,7 +17,7 @@ MicroSD card as boot and OS.
### First milestone ### First milestone
- [X] ZFS set up on the HDDs - [X] ZFS set up on the HDDs
- [ ] Plex media server - [X] Plex media server
### Second milestone ### Second milestone

View File

@ -38,6 +38,14 @@
# zfs needs this for some reason # zfs needs this for some reason
networking.hostId = "488ecad2"; networking.hostId = "488ecad2";
}; };
nixosModules.plex = {...}: {
services.plex = {
enable = true;
dataDir = "/storage/media/plex";
openFirewall = true;
};
nixpkgs.config.allowUnfree = true;
};
nixosConfigurations.chopper = nixpkgs.lib.nixosSystem { nixosConfigurations.chopper = nixpkgs.lib.nixosSystem {
system = "aarch64-linux"; system = "aarch64-linux";
modules = [ modules = [
@ -46,6 +54,7 @@
self.nixosModules.users self.nixosModules.users
self.nixosModules.ssh self.nixosModules.ssh
self.nixosModules.zfs self.nixosModules.zfs
self.nixosModules.plex
]; ];
}; };
}; };