added Lillie host

This commit is contained in:
willifan 2024-11-02 13:29:38 +01:00
parent d8df4f3de1
commit 267b0e1f28
4 changed files with 94 additions and 0 deletions

7
hosts/Lillie/default.nix Normal file
View file

@ -0,0 +1,7 @@
{ ... }:
{
imports = [
./hardware-configuration.nix
./disko.nix
];
}

56
hosts/Lillie/disko.nix Normal file
View file

@ -0,0 +1,56 @@
{
disko.devices = {
disk = {
nvme0n1 = {
type = "disk";
device = "/dev/disk/by-id/nvme-CT1000P310SSD2-24314A4587C7";
content = {
type = "gpt";
partitions = {
ESP = {
priority = 1;
name = "ESP";
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
size = "100%";
content = {
type = "btrfs";
extraArgs = [ "-f" ]; # Override existing partition
# Subvolumes must set a mountpoint in order to be mounted,
# unless their parent is mounted
subvolumes = {
# Subvolume name is different from mountpoint
"/rootfs" = {
mountOptions = [ "compress=zstd" "noatime" ];
mountpoint = "/";
};
# Subvolume name is the same as the mountpoint
"/home" = {
mountOptions = [ "compress=zstd" "noatime" ];
mountpoint = "/home";
};
# Parent is not mounted so the mountpoint must be set
"/nix" = {
mountOptions = [ "compress=zstd" "noatime" ];
mountpoint = "/nix";
};
"/mnt/data" = {
mountOptions = [ "compress=zstd" "noatime" ];
mountpoint = "/mnt/data";
};
};
};
};
};
};
};
};
};
}