it should work now

This commit is contained in:
Snorre 2025-03-04 14:43:17 +01:00
parent 097bd10bd4
commit b78c6df390
3 changed files with 21 additions and 15 deletions

3
modules/microvm.nix Normal file
View file

@ -0,0 +1,3 @@
{...}: {
microvm.hyprvisor = "cloud-hyprvisor";
}

View file

@ -20,6 +20,8 @@
];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIFhTExbc9m4dCK6676wGiA8zPjE0l/9Fz2yf0IKvUvg snorre@archlinux"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBtEJ4aQ4nn21ASBlVI54reYnWTefBBI1eUEkL0/adOe work@laptop"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICPQ3uc8UB9m6NPkXHETTJrzxB6M+SfUiBx6YeWUSADU sxsgamer@gmail.com"
];
shell = pkgs.zsh;

View file

@ -1,23 +1,24 @@
{
lib,
nixpkgs,
...
}: let
{...}: let
host = "127.0.0.1";
port = 8989;
in {
microvm.autostart = ["sonarr"];
microvm.vms."sonarr" = {
pkgs = import nixpkgs {system = nixpkgs.system;};
microvm.hyprvisor = "cloud-hyprvisor";
microvm.shares = [
{
tag = "ro-store";
source = "/nix/store";
mountPoint = "/nix/.ro-store";
}
];
config = {
system.stateVersion = "24.11";
microvm.shares = [
{
tag = "ro-store";
source = "/nix/store";
mountPoint = "/nix/.ro-store";
}
{
tag = "data-dir";
source = "/var/lib/sonarr";
mountPoint = "/var/lib/sonarr";
}
];
services.sonarr = {
enable = true;
openFirewall = true; # Hide sonarr behind firewall