goodybe maine-coon, for now

This commit is contained in:
CherryKitten 2024-03-24 19:03:48 +01:00
parent de1ec33923
commit 16d1653312
Signed by: sammy
GPG key ID: 98D8F75FB0658276
4 changed files with 0 additions and 114 deletions

View file

@ -58,7 +58,6 @@
}; };
bengal = { }; bengal = { };
maine-coon = { };
}; };
nixosConfigurations = { nixosConfigurations = {

View file

@ -1,42 +0,0 @@
{ ... }: {
imports = [
./hardware-configuration.nix
./gotosocial.nix
];
networking.hostName = "maine-coon";
boot.loader.grub.device = "/dev/nvme0n1";
networking.useDHCP = false;
networking.interfaces."enp0s31f6".ipv4.addresses = [
{
address = "159.69.71.253";
prefixLength = 26;
}
];
networking.interfaces."enp0s31f6".ipv6.addresses = [
{
address = "2a01:4f8:231:16dc::1";
prefixLength = 64;
}
];
networking.defaultGateway = "159.69.71.193";
networking.defaultGateway6 = {
address = "fe80::1";
interface = "enp0s31f6";
};
networking.nameservers = [ "8.8.8.8" ];
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJZyQSZw+pExsx2RXB+yxbaJGB9mtvudbQ/BP7E1yKvr openpgp:0x6068FEBB"
];
services.openssh.enable = true;
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
system.stateVersion = "24.05"; # Did you read the comment?
}

View file

@ -1,53 +0,0 @@
{ ... }:
let
bind-address = "127.0.0.1";
host = "cherrykitten.gay";
port = 8553;
in
{
services.gotosocial = {
enable = true;
settings = {
inherit bind-address host port;
application-name = "CherryKitten";
setupPostgresqlDB = true;
landing-page-user = "sammy";
instance-expose-suspended = true;
instance-expose-suspended-web = true;
accounts-registration-open = false;
media-image-max-size = 41943040;
media-video-max-size = 83886080;
media-description-max-chars = 3000;
media-remote-cache-days = 14;
media-emoji-local-max-size = 204800;
media-emoji-remote-max-size = 204800;
statuses-max-chars = 69420;
statuses-cw-max-chars = 200;
statuses-poll-max-options = 10;
statuses-poll-option-max-chars = 150;
statuses-media-max-files = 16;
};
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.nginx = {
enable = true;
clientMaxBodySize = "40M";
virtualHosts = {
"${host}" = {
enableACME = true;
forceSSL = true;
locations = {
"/" = {
recommendedProxySettings = true;
proxyWebsockets = true;
proxyPass = "http://${bind-address}:${toString port}";
};
};
};
};
};
}

View file

@ -1,18 +0,0 @@
{ ... }: {
boot.initrd.availableKernelModules = [ "ahci" "nvme" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/nvme0n1p2";
fsType = "btrfs";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/69ed72d0-20c2-440e-a036-7de658766ee0";
fsType = "ext2";
};
swapDevices = [ ];
}