mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 17:03:55 -05:00
60 lines
1.6 KiB
Nix
60 lines
1.6 KiB
Nix
|
{inputs, ...}: {
|
||
|
imports = [
|
||
|
inputs.disko.nixosModules.disko
|
||
|
];
|
||
|
disko.devices = {
|
||
|
disk = {
|
||
|
vdb = {
|
||
|
type = "disk";
|
||
|
device = "/dev/nvme0n1";
|
||
|
content = {
|
||
|
type = "gpt";
|
||
|
partitions = {
|
||
|
ESP = {
|
||
|
size = "1024M";
|
||
|
type = "EF00";
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "vfat";
|
||
|
mountpoint = "/boot";
|
||
|
mountOptions = [
|
||
|
"umask=0077"
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
luks = {
|
||
|
size = "100%";
|
||
|
content = {
|
||
|
type = "luks";
|
||
|
name = "crypted";
|
||
|
content = {
|
||
|
type = "btrfs";
|
||
|
extraArgs = ["-f"];
|
||
|
subvolumes = {
|
||
|
"/root" = {
|
||
|
mountpoint = "/";
|
||
|
mountOptions = ["compress=zstd" "noatime"];
|
||
|
};
|
||
|
"persist" = {
|
||
|
mountpoint = "/persist";
|
||
|
mountOptions = ["compress=zstd" "noatime"];
|
||
|
};
|
||
|
"/home" = {
|
||
|
mountpoint = "/home";
|
||
|
mountOptions = ["compress=zstd" "noatime"];
|
||
|
};
|
||
|
"/nix" = {
|
||
|
mountpoint = "/nix";
|
||
|
mountOptions = ["compress=zstd" "noatime"];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|