Services
This commit is contained in:
parent
32a1ca6843
commit
8a6a45027f
3 changed files with 32 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./modules
|
./modules
|
||||||
|
./services
|
||||||
];
|
];
|
||||||
|
|
||||||
system.stateVersion = "24.11";
|
system.stateVersion = "24.11";
|
||||||
|
|
15
hosts/laptop-server/services/default.nix
Normal file
15
hosts/laptop-server/services/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./jellyfin.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
nat = {
|
||||||
|
enable = true;
|
||||||
|
internalInterfaces = ["ve-+"];
|
||||||
|
externalInterface = "wlp2s0";
|
||||||
|
};
|
||||||
|
networkmanager.unmanaged = [ "interface-name:ve-*" ];
|
||||||
|
};
|
||||||
|
}
|
16
hosts/laptop-server/services/jellyfin.nix
Normal file
16
hosts/laptop-server/services/jellyfin.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ config, ... }:
|
||||||
|
{
|
||||||
|
containers.jellyfin = {
|
||||||
|
config = { pkgs, ...}: {
|
||||||
|
system.stateVersion = "25.05";
|
||||||
|
|
||||||
|
services.jellyfin = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.jellyfin;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
autoStart = true;
|
||||||
|
hostAddress = "172.30.0.2"; # TODO define in config option
|
||||||
|
localAddress = "172.30.0.2";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue