initial server config

This commit is contained in:
twoneis 2025-02-04 20:08:19 +01:00
parent 1071e51afd
commit 4ef562c1da
9 changed files with 161 additions and 37 deletions

50
devices/ellaca/disko.nix Normal file
View file

@ -0,0 +1,50 @@
{
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/sda";
content = {
type = "gpt";
partitions = {
ESP = {
priority = 1;
name = "BOOT";
size = "2G";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
root = {
size = "100%";
content = {
type = "btrfs";
extraArgs = [ "-f" ]; # Override existing partition
subvolumes = {
"/root" = {
mountOptions = [ "compress=zstd" "noatime" ];
mountpoint = "/";
};
"/nix" = {
mountOptions = [ "compress=zstd" "noatime" ];
mountpoint = "/nix";
};
"/swap" = {
mountpoint = "/.swapvol";
swap = {
swapfile.size = "20M";
};
};
};
};
};
};
};
};
};
};
}