From b107dbd69a3373aad605d713ea1c4555d8c0526a Mon Sep 17 00:00:00 2001 From: mir Date: Mon, 18 Mar 2024 23:53:37 -0800 Subject: [PATCH] add services.nix in prep for migrating server. use on breakdown as test --- flake.nix | 1 + server/services.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 server/services.nix diff --git a/flake.nix b/flake.nix index c46c8e4..1e9c9c7 100644 --- a/flake.nix +++ b/flake.nix @@ -71,6 +71,7 @@ boot.loader.efi.canTouchEfiVariables = true; sound.enable = true; } + ./server/services.nix ./hardware/breakdown-hw.nix home-manager.nixosModules.home-manager { diff --git a/server/services.nix b/server/services.nix new file mode 100644 index 0000000..2b4fe2f --- /dev/null +++ b/server/services.nix @@ -0,0 +1,30 @@ +# services to run on Unicron + + +{ config, lib, pkgs, nixos-unstable, inputs, ... }: +{ + # netboot server; disabled and broken + services.pixiecore = { + enable = false; + openFirewall = true; + dhcpNoBind = true; + kernel = "https://boot.netboot.xyz"; + }; + services.searx = { + enable = true; + settings = { + server = { + port = 8888; + bind_address = "0.0.0.0"; + secret_key = "secret key"; + }; + }; + }; + services.jellyfin = { + enable = true; + }; + virtualisation.docker = { + enable = true; + # storageDriver = "btrfs"; # breaks when not btrfs... + }; +}