models: remove unused t0-vul-vhp-1c-1gb #1156

Merged
JakeHillion merged 1 commits from jj/mooowsmxzunm into main 2026-06-07 19:31:53 +01:00
2 changed files with 0 additions and 129 deletions

No files matched your search

-58
View File
@@ -1,58 +0,0 @@
{ config, pkgs, lib, ... }:
{
imports = [
./disko.nix
];
config = {
# Boot configuration
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Vultr VPS uses virtio drivers
boot.initrd.kernelModules = [
"virtio_blk"
"virtio_pci"
"virtio_scsi"
"virtio_net"
];
# Tang/Clevis configuration (disabled by default)
custom.tang = {
networkingModule = "virtio_net";
secretFile = "/data/disk_encryption.jwe";
devices = [ "disk0-crypt" ];
};
# Enable impermanence for ephemeral root
custom.impermanence.enable = true;
# Reset root subvolume on boot for ephemeral root
boot.initrd.postDeviceCommands = lib.mkAfter ''
mkdir -p /mnt
# Mount btrfs root to /mnt
mount -o subvol=/ /dev/mapper/disk0-crypt /mnt
# Delete existing subvolumes under /root
btrfs subvolume list -o /mnt/root |
cut -f9 -d' ' |
while read subvolume; do
echo "deleting /$subvolume subvolume..."
btrfs subvolume delete "/mnt/$subvolume"
done &&
echo "deleting /root subvolume..." &&
btrfs subvolume delete /mnt/root
echo "restoring blank /root subvolume..."
btrfs subvolume snapshot /mnt/root-blank /mnt/root
# Unmount and continue boot process
umount /mnt
'';
# Networking - Using DHCP which Vultr provides
networking.useDHCP = lib.mkDefault true;
};
}
-71
View File
@@ -1,71 +0,0 @@
{
disko.devices = {
disk = {
disk0 = {
type = "disk";
device = "/dev/vda";
content = {
type = "gpt";
partitions = {
ESP = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
swap = {
size = "5G";
content = {
type = "swap";
randomEncryption = true;
discardPolicy = "both";
};
};
disk0-crypt = {
size = "100%";
content = {
type = "luks";
name = "disk0-crypt";
settings = {
allowDiscards = true;
};
content = {
type = "btrfs";
postCreateHook = ''
MNTPOINT=$(mktemp -d)
mount "/dev/mapper/disk0-crypt" "$MNTPOINT" -o subvol=/
trap 'umount $MNTPOINT; rm -rf $MNTPOINT' EXIT
btrfs subvolume snapshot -r $MNTPOINT/root $MNTPOINT/root-blank
'';
subvolumes = {
"/root" = {
mountpoint = "/";
mountOptions = [ "compress=zstd" ];
};
"/data" = {
mountpoint = "/data";
mountOptions = [ "compress=zstd" ];
};
"/nix" = {
mountpoint = "/nix";
mountOptions = [ "compress=zstd" "noatime" ];
};
};
};
};
};
};
};
};
};
};
}