add services.nix in prep for migrating server. use on breakdown as test

This commit is contained in:
mir 2024-03-18 23:53:37 -08:00
parent 91c8ea8c62
commit b107dbd69a
2 changed files with 31 additions and 0 deletions

View File

@ -71,6 +71,7 @@
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
sound.enable = true; sound.enable = true;
} }
./server/services.nix
./hardware/breakdown-hw.nix ./hardware/breakdown-hw.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{ {

30
server/services.nix Normal file
View File

@ -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...
};
}