mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-26 01:47:16 +08:00
23 lines
395 B
Nix
23 lines
395 B
Nix
{ flake, pkgs, ... }:
|
|
|
|
let
|
|
inherit (flake) inputs;
|
|
in
|
|
{
|
|
imports = [
|
|
inputs.vira.nixosModules.vira
|
|
];
|
|
|
|
services.vira = {
|
|
enable = true;
|
|
|
|
# Basic configuration
|
|
hostname = "0.0.0.0";
|
|
port = 5001;
|
|
https = false;
|
|
stateDirectory = "/var/lib/vira";
|
|
package = inputs.vira.packages.${pkgs.system}.default;
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 5001 ];
|
|
}
|