mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 15:45:39 +00:00
feat: add vps host configurations
This commit is contained in:
parent
14fdc3875f
commit
d7179b75a8
12 changed files with 113 additions and 0 deletions
7
hosts/vps/modules/services/default.nix
Normal file
7
hosts/vps/modules/services/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./tailscale.nix
|
||||
./vaultwarden.nix
|
||||
./openssh.nix
|
||||
];
|
||||
}
|
3
hosts/vps/modules/services/openssh.nix
Normal file
3
hosts/vps/modules/services/openssh.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
services.openssh.enable = true;
|
||||
}
|
11
hosts/vps/modules/services/tailscale.nix
Normal file
11
hosts/vps/modules/services/tailscale.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
sops.secrets."tailscale/authkey" = { };
|
||||
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
authKeyFile = config.sops.secrets."tailscale/authkey".path;
|
||||
useRoutingFeatures = "both";
|
||||
};
|
||||
}
|
9
hosts/vps/modules/services/vaultwarden.nix
Normal file
9
hosts/vps/modules/services/vaultwarden.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
services.vaultwarden = {
|
||||
enable = true;
|
||||
config = {
|
||||
ROCKET_ADDRESS = "127.0.0.1";
|
||||
ROCKET_PORT = 8222;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue