From c2dfe588ba331c5a65b9ab1fd0bae7ef150e1fbd Mon Sep 17 00:00:00 2001 From: Haylin Moore Date: Thu, 10 Oct 2024 21:21:01 -0400 Subject: [PATCH] Deploy alice! --- common/motd.nix | 1 + hosts/alice.nix | 56 ++++++++++++++++++++++++++++++++++++++++++++++++ hosts/info/alice | 16 ++++++++++++++ network.nix | 9 ++++++++ 4 files changed, 82 insertions(+) create mode 100644 hosts/alice.nix create mode 100644 hosts/info/alice diff --git a/common/motd.nix b/common/motd.nix index 99e3eed..1c25684 100644 --- a/common/motd.nix +++ b/common/motd.nix @@ -11,6 +11,7 @@ Latest news: * Now supports fetching your ssh key from a url, contact an admin * Nova: new UK GPU host! try nova.wolfgirl.systems * Jude: new Kansas City host! try jude.wolfgirl.systems +* Alice: new Ashburn host! try alice.wolfgirl.systems *-+-*-+-*-+-*-+-*-+-*-+-*-+-*-+-*-+-*-+-*-+-*-+-*-+-*-+-*-+-*-+-* ''; } diff --git a/hosts/alice.nix b/hosts/alice.nix new file mode 100644 index 0000000..fee6c81 --- /dev/null +++ b/hosts/alice.nix @@ -0,0 +1,56 @@ +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/1aeaf426-9dec-40b8-b472-5785832444a6"; + fsType = "ext4"; + }; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + + boot.loader.grub.enable = true; + boot.loader.grub.device = "/dev/sda"; + + time.timeZone = "America/New_York"; + i18n.defaultLocale = "en_US.UTF-8"; + services.openssh.enable = true; + + networking = { + hostName = "alice"; + search = ["wolfgirl.systems"]; + nameservers = [ "9.9.9.10" "149.112.112.10" "2620:fe::10" "2620:fe::fe:10"]; + dhcpcd.enable = false; + interfaces.enp6s18.ipv4.addresses = [{ + address = "207.167.121.11"; + prefixLength = 24; + }]; + interfaces.enp6s18.ipv6.addresses = [{ + address = "2602:fbf5:1::cfa7:790b"; + prefixLength = 48; + }]; + defaultGateway = { + address = "207.167.121.1"; + interface = "enp6s18"; + }; + defaultGateway6 = { + address = "2602:fbf5:1::1"; + interface = "enp6s18"; + }; + }; + + environment.etc."info" = { + mode = "0644"; + text = builtins.readFile ./info/alice; + }; + + system.stateVersion = "24.05"; +} diff --git a/hosts/info/alice b/hosts/info/alice new file mode 100644 index 0000000..7ccc232 --- /dev/null +++ b/hosts/info/alice @@ -0,0 +1,16 @@ +Server sponsored by https://haylinmoore.com at Ashburn + +No user in this region shall do the following. +1. DDoS/DoS Attacks +2. Hacking/Cracking of any kind +3. Spamming, Including but not limited to, eMail spam/mass mailing, web spam, + ping flood, etc +4. Interstate Gambling or Pyramid Schemes +5. Transmission, Storage, or Distribution of any Adult Content, Sexually + Explicit Services, hacker programs, and copyrighted materials(except if you + are the copyright owner, or you have a license that permits what you are doing). +6. Sale of a controlled substance or other online pharmacies, and weapons. +7. Harassment or advocacy of violence against a specific person or class of people +8. Anything that violates the laws that governs Kansas City, Missouri. +9. Tor +10. Anything to damage my IP Reputation diff --git a/network.nix b/network.nix index 300e3eb..ef54e1d 100644 --- a/network.nix +++ b/network.nix @@ -38,4 +38,13 @@ in ./common ]; }; + "alice" = { pkgs, ... }: { + deployment = { + targetHost = "207.167.121.11"; + }; + imports = [ + ./hosts/alice.nix + ./common + ]; + }; }