upd
This commit is contained in:
28
hosts/server/configuration.nix
Normal file
28
hosts/server/configuration.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./modules/atproto-pds.nix
|
||||
];
|
||||
|
||||
services.openssh.enable = true;
|
||||
|
||||
users.users.ocbwoy3 = {
|
||||
initialPassword = "thisisapassword42069!"; # not the type passwords i use
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "networkmanager" ];
|
||||
};
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||
|
||||
catppuccin = {
|
||||
enable = true;
|
||||
flavor = "mocha";
|
||||
accent = "blue";
|
||||
};
|
||||
|
||||
system.stateVersion = "23.05"; # DO NOT TOUCH
|
||||
|
||||
}
|
||||
27
hosts/server/modules/atproto-pds.nix
Normal file
27
hosts/server/modules/atproto-pds.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ config, inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# TODO:
|
||||
# Upload PDS backup to /var/lib/pds
|
||||
# and specify secrets in /private/atproto-pds.env
|
||||
|
||||
services.pds = {
|
||||
enable = true;
|
||||
pdsadmin.enable = true;
|
||||
environmentFiles = [ "/private/atproto-pds.env" ];
|
||||
settings = {
|
||||
PDS_CRAWLERS = "https://bsky.network";
|
||||
LOG_ENABLED = true;
|
||||
PDS_HOSTNAME = "pds.darktru.win";
|
||||
PDS_VERSION = "I'm an ATProto PDS!";
|
||||
PDS_DID_PLC_URL = "https://plc.directory";
|
||||
PDS_CONTACT_EMAIL_ADDRESS = "ocbwoy3@ocbwoy3.dev";
|
||||
PDS_PRIVACY_POLICY_URL = "https://ocbwoy3.dev";
|
||||
PDS_TERMS_OF_SERVICE_URL = "https://discord.gg/cQDvPtv3Dt";
|
||||
PDS_ACCEPTING_REPO_IMPORTS = true;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user