From 28e5807ebc604e62ab8956c843a1c13293558b48 Mon Sep 17 00:00:00 2001 From: stitchy Date: Wed, 29 Oct 2025 22:50:43 -0700 Subject: [PATCH] chore(nix): remove gemini This server has been depreciated for a long time --- flake.nix | 19 +-------- hosts/gemini/default.nix | 51 ------------------------- hosts/gemini/hardware-configuration.nix | 40 ------------------- 3 files changed, 1 insertion(+), 109 deletions(-) delete mode 100644 hosts/gemini/default.nix delete mode 100644 hosts/gemini/hardware-configuration.nix diff --git a/flake.nix b/flake.nix index 5185729..26183f1 100644 --- a/flake.nix +++ b/flake.nix @@ -39,6 +39,7 @@ } ]; }; + lappy = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { inherit inputs; }; @@ -66,25 +67,7 @@ } ]; }; - gemini = nixpkgs.lib.nixosSystem { - system = "x86_64-linux"; - specialArgs = { inherit inputs; }; - modules = [ - ./hosts/gemini/default.nix - ./users/nyadmin/default.nix - ./users/cirno/default.nix - - home-manager.nixosModules.home-manager - { - home-manager.extraSpecialArgs = {inherit inputs;}; - home-manager.useGlobalPkgs = true; - home-manager.useUserPackages = true; - home-manager.users.nyadmin = import ./users/nyadmin/home.nix; - home-manager.users.cirno = import ./users/cirno/home.nix; - } - ]; - }; tanzanite = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { inherit inputs; }; diff --git a/hosts/gemini/default.nix b/hosts/gemini/default.nix deleted file mode 100644 index 1a9cb36..0000000 --- a/hosts/gemini/default.nix +++ /dev/null @@ -1,51 +0,0 @@ -# Edit this configuration file to define what should be installed on -# your system. Help is available in the configuration.nix(5) man page -# and in the NixOS manual (accessible by running `nixos-help`). - -{ config, pkgs, ... }: - -{ - imports = - [ - ./hardware-configuration.nix - ../default.nix - ]; - - stitchyconf = { - form = "server"; - }; - - networking.hostName = "gemini"; - time.timeZone = "America/Los_Angeles"; - - # Open ports in the firewall. - networking.firewall.allowedTCPPorts = [ 22 25565 ]; - networking.firewall.allowedUDPPorts = [ 51820 ]; - - virtualisation.docker.enable = true; - - networking.wg-quick.interfaces = { - wg0 = { - address = [ - "10.100.0.4/32" - ]; - - listenPort = 51820; - - # Path to the private key file. - privateKeyFile = "/etc/nixos/hosts/gemini/wg.key"; - - peers = [{ - publicKey = "atXy3zi3FLoxP8hgzJIIeLGks4Te9HrKkQGoaobholM="; - presharedKeyFile = "/etc/nixos/hosts/gemini/wg.psk"; - allowedIPs = [ "10.100.0.0/24" ]; - endpoint = "moms.wireguard.stitchy.moe:47111"; - persistentKeepalive = 25; - }]; - }; - }; - - - system.stateVersion = "23.05"; # Did you read the comment? -} - diff --git a/hosts/gemini/hardware-configuration.nix b/hosts/gemini/hardware-configuration.nix deleted file mode 100644 index a3f32fb..0000000 --- a/hosts/gemini/hardware-configuration.nix +++ /dev/null @@ -1,40 +0,0 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: - -{ - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; - - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = - { device = "/dev/disk/by-uuid/7a0bd5fe-fb8a-43a5-bdf8-a45d8a303fc5"; - fsType = "btrfs"; - options = [ "subvol=@" ]; - }; - - fileSystems."/home" = - { device = "/dev/disk/by-uuid/7a0bd5fe-fb8a-43a5-bdf8-a45d8a303fc5"; - fsType = "btrfs"; - options = [ "subvol=@home" ]; - }; - - swapDevices = [ ]; - - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking - # (the default) this is the recommended approach. When using systemd-networkd it's - # still possible to use this option, but it's recommended to use it in conjunction - # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; - # networking.interfaces.enp4s0.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - powerManagement.cpuFreqGovernor = lib.mkDefault "schedutil"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; -}