diff --git a/flake.nix b/flake.nix index 9330709..095a2f4 100644 --- a/flake.nix +++ b/flake.nix @@ -58,7 +58,6 @@ }; bengal = { }; - maine-coon = { }; }; nixosConfigurations = { diff --git a/hosts/maine-coon/default.nix b/hosts/maine-coon/default.nix deleted file mode 100644 index ce3d9d5..0000000 --- a/hosts/maine-coon/default.nix +++ /dev/null @@ -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? -} diff --git a/hosts/maine-coon/gotosocial.nix b/hosts/maine-coon/gotosocial.nix deleted file mode 100644 index f61c957..0000000 --- a/hosts/maine-coon/gotosocial.nix +++ /dev/null @@ -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}"; - }; - }; - }; - }; - }; -} diff --git a/hosts/maine-coon/hardware-configuration.nix b/hosts/maine-coon/hardware-configuration.nix deleted file mode 100644 index f0200c6..0000000 --- a/hosts/maine-coon/hardware-configuration.nix +++ /dev/null @@ -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 = [ ]; -}