Files
nixos-blueprint/hosts/eldrid/disko.nix
unexplrd 465ed96e8e hosts/sarien/disko.nix: add /tmp mount
hosts/eldrid/disko.nix: add /tmp mount

Signed-off-by: unexplrd <unexplrd@linerds.us>
2025-04-06 13:56:41 +03:00

95 lines
2.4 KiB
Nix

{inputs, ...}: {
imports = with inputs; [
disko.nixosModules.disko
];
disko.devices.nodev = {
"/tmp" = {
fsType = "tmpfs";
mountOptions = ["rw" "nosuid" "nodev"];
};
};
disko.devices.disk.main = {
type = "disk";
device = "/dev/nvme0n1";
content = {
type = "gpt";
partitions = {
ESP = {
size = "1G";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [
"umask=0077"
"fmask=0022"
"dmask=0022"
"noexec"
];
};
};
luks = {
size = "100%";
content = {
type = "luks";
name = "lukscrypted";
initrdUnlock = true;
settings.allowDiscards = true;
content = {
type = "btrfs";
extraArgs = ["-f"];
subvolumes = {
"@nixos" = {
mountpoint = "/";
mountOptions = [
"compress=zstd"
"noatime"
# "noexec"
];
};
"@home" = {
mountpoint = "/home";
mountOptions = [
"compress=zstd"
"noatime"
];
};
"@flatpak" = {
mountpoint = "/var/lib/flatpak";
mountOptions = [
"compress=zstd"
"noatime"
];
};
# "@storage" = {
# mountpoint = "/storage";
# mountOptions = [
# "compress=zstd"
# "noatime"
# ];
# };
"@swap" = {
mountpoint = "/swap";
mountOptions = [
"compress=zstd"
"noatime"
# "noexec"
];
};
# "@nix" = {
# mountpoint = "/nix";
# mountOptions = [
# "compress=zstd"
# "noatime"
# ];
# };
};
};
};
};
};
};
};
}