Delete jellyfin service and fix hostname

This commit is contained in:
Théo Barnouin 2024-09-13 10:22:22 +02:00
parent 30f85e7ce6
commit cbb5c3623b

View file

@ -13,7 +13,7 @@
outputs = inputs@{ self, nixpkgs, home-manager, microvm, ... }: outputs = inputs@{ self, nixpkgs, home-manager, microvm, ... }:
let let
hostName = "nixos-hypervisor"; hostName = "nixmox-perseverance";
system = "x86_64-linux"; system = "x86_64-linux";
username = "tbarnouin"; username = "tbarnouin";
in in
@ -37,7 +37,6 @@
microvm = { microvm = {
autostart = [ autostart = [
"nginx" "nginx"
"jellyfin"
"redis" "redis"
"grafana" "grafana"
"authentik" "authentik"
@ -47,10 +46,6 @@
flake = self; flake = self;
updateFlake = "git+file:///etc/nixos"; updateFlake = "git+file:///etc/nixos";
}; };
jellyfin = {
flake = self;
updateFlake = "git+file:///etc/nixos";
};
redis = { redis = {
flake = self; flake = self;
updateFlake = "git+file:///etc/nixos"; updateFlake = "git+file:///etc/nixos";
@ -113,27 +108,6 @@
} }
]; ];
}; };
jellyfin = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
microvm.nixosModules.microvm
"${inputs.self}/systems"
"${inputs.self}/services"
{
services.vm_jellyfin = {
enable = true;
};
services.vm = {
enable = true;
hostname = "jellyfin";
vm_ip = "192.168.1.42";
vm_cpu = 6;
vm_mem = 8192;
macAddr = "02:00:00:00:00:42";
};
}
];
};
grafana = nixpkgs.lib.nixosSystem { grafana = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [