diff --git a/modules/microvm.nix b/modules/microvm.nix new file mode 100644 index 0000000..d198b14 --- /dev/null +++ b/modules/microvm.nix @@ -0,0 +1,3 @@ +{...}: { + microvm.hyprvisor = "cloud-hyprvisor"; +} diff --git a/modules/users.nix b/modules/users.nix index 553f296..c2ebfd3 100755 --- a/modules/users.nix +++ b/modules/users.nix @@ -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; diff --git a/services/sonarr.nix b/services/sonarr.nix index d7a2c5d..2c59b46 100644 --- a/services/sonarr.nix +++ b/services/sonarr.nix @@ -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