mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-10 20:20:41 +03:00
25 lines
385 B
Nix
25 lines
385 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
services = {
|
|
nix-serve = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
port = 5000;
|
|
bindAddress = "0.0.0.0";
|
|
secretKeyFile = config.sops.secrets.private-key.path;
|
|
};
|
|
};
|
|
sops.secrets = {
|
|
private-key = {
|
|
key = "private-key";
|
|
sopsFile = ./secrets/nix-serve.yaml;
|
|
mode = "0600";
|
|
};
|
|
};
|
|
}
|