added config for personal laptop, now named Harmatan.

This commit is contained in:
Gabe Venberg 2025-10-12 21:17:19 +02:00
parent f1f3b12688
commit eecc4e40ea
8 changed files with 186 additions and 65 deletions

View file

@ -0,0 +1,66 @@
{
disko.devices = {
disk = {
emmc = {
device = "/dev/disk/by-id/nvme-eui.000000000000000100a07521334683d6";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = ["umask=0077"];
};
};
luks = {
size = "100%";
content = {
type = "luks";
name = "crypted";
# disable settings.keyFile if you want to use interactive password entry
passwordFile = "/tmp/secret.key"; # Interactive
content = {
type = "btrfs";
extraArgs = ["-L" "nixos" "-f"];
subvolumes = {
"/root" = {
mountpoint = "/";
mountOptions = [
"compress=zstd"
"noatime"
];
};
"/home" = {
mountpoint = "/home";
mountOptions = [
"compress=zstd"
"noatime"
];
};
"/nix" = {
mountpoint = "/nix";
mountOptions = [
"compress=zstd"
"noatime"
];
};
"/swap" = {
mountpoint = "/.swapvol";
swap.swapfile.size = "16G";
priority = 0;
};
};
};
};
};
};
};
};
};
};
}