host(nijika): nuke

+1 -1
systems/default.nix
···
# cloud servers
kita = mkSystem "kita" "x86_64-linux";
ryo = mkSystem "ryo" "x86_64-linux";
-
nijika = mkSystem "nijika" "aarch64-linux";
+
# nijika = mkSystem "nijika" "aarch64-linux";
}
-16
systems/nijika/configuration.nix
···
-
{ ... }:
-
{
-
imports = [
-
./services
-
./networking.nix # generated at runtime by nixos-infect
-
];
-
-
gensokyo.presets = {
-
vmetrics = true;
-
certificates = true;
-
nginx = true;
-
};
-
boot.tmp.cleanOnBoot = true;
-
zramSwap.enable = true;
-
system.stateVersion = "24.11";
-
}
-23
systems/nijika/hardware-configuration.nix
···
-
{ modulesPath, ... }:
-
{
-
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
-
boot.loader.grub = {
-
efiSupport = true;
-
efiInstallAsRemovable = true;
-
device = "nodev";
-
};
-
fileSystems."/boot" = {
-
device = "/dev/disk/by-uuid/5E93-6B15";
-
fsType = "vfat";
-
};
-
boot.initrd.availableKernelModules = [
-
"ata_piix"
-
"uhci_hcd"
-
"xen_blkfront"
-
];
-
boot.initrd.kernelModules = [ "nvme" ];
-
fileSystems."/" = {
-
device = "/dev/sda1";
-
fsType = "ext4";
-
};
-
}
-54
systems/nijika/networking.nix
···
-
{ lib, ... }:
-
{
-
# This file was populated at runtime with the networking
-
# details gathered from the active system.
-
networking = {
-
nameservers = [
-
"2a01:4ff:ff00::add:2"
-
"2a01:4ff:ff00::add:1"
-
"185.12.64.2"
-
];
-
defaultGateway = "172.31.1.1";
-
defaultGateway6 = {
-
address = "fe80::1";
-
interface = "eth0";
-
};
-
dhcpcd.enable = false;
-
usePredictableInterfaceNames = lib.mkForce false;
-
interfaces = {
-
eth0 = {
-
ipv4.addresses = [
-
{
-
address = "138.199.164.93";
-
prefixLength = 32;
-
}
-
];
-
ipv6.addresses = [
-
{
-
address = "2a01:4f8:c012:b493::b00b";
-
prefixLength = 64;
-
}
-
{
-
address = "fe80::9400:4ff:fe0e:e3d";
-
prefixLength = 64;
-
}
-
];
-
ipv4.routes = [
-
{
-
address = "172.31.1.1";
-
prefixLength = 32;
-
}
-
];
-
ipv6.routes = [
-
{
-
address = "fe80::1";
-
prefixLength = 128;
-
}
-
];
-
};
-
};
-
};
-
services.udev.extraRules = ''
-
ATTR{address}=="96:00:04:0e:0e:3d", NAME="eth0"
-
'';
-
}
-6
systems/nijika/services/default.nix
···
-
{ ... }:
-
{
-
imports = [
-
./fallback_page
-
];
-
}
-17
systems/nijika/services/fallback_page/default.nix
···
-
{
-
pkgs,
-
_utils,
-
...
-
}:
-
{
-
services.nginx.virtualHosts."nijika.soopy.moe" = _utils.mkVhost {
-
useACMEHost = null;
-
enableACME = true;
-
default = true;
-
-
locations."/" = {
-
root = pkgs.callPackage ./package.nix { };
-
tryFiles = "$uri $uri/index.html $uri.html =404";
-
};
-
};
-
}
systems/nijika/services/fallback_page/image.png

This is a binary file and will not be displayed.

-14
systems/nijika/services/fallback_page/index.html
···
-
<!doctype html>
-
<html lang="en">
-
<head>
-
<title>nijiker</title>
-
<meta name="description" content="funny triangle woman" />
-
<style>
-
img {width: 100%; height: 100%; object-fit: contain;}
-
</style>
-
</head>
-
-
<body>
-
<a href="https://www.walmart.com/ip/Doritos-Nacho-Cheese-Flavored-Tortilla-Chips-3-375-oz-Bag/20897577"><img src="image.png" alt="A bag of Doritos." /></a>
-
</body>
-
</html>
-10
systems/nijika/services/fallback_page/package.nix
···
-
{ stdenvNoCC }:
-
stdenvNoCC.mkDerivation (final: {
-
name = "nijika-landing";
-
src = ./.;
-
-
installPhase = ''
-
mkdir $out
-
cp ${final.src}/* $out/
-
'';
-
})