1
0
Fork 0
forked from emily/nixfiles
nixfiles-emily/config/hosts/ryuuko/disko.nix

51 lines
1.3 KiB
Nix
Raw Normal View History

2024-02-26 20:06:58 +01:00
{ config, inputs, ... }: {
imports = [
inputs.disko.nixosModules.disko
];
disko.devices.disk.nvme = {
2024-02-27 19:07:12 +01:00
device = "/dev/sda";
2024-02-26 20:06:58 +01:00
type = "disk";
content = {
type = "gpt";
partitions = {
BOOT = {
type = "EF00";
size = "512M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
2024-02-27 19:07:12 +01:00
mountOptions = [ "umask=0077" "defaults" ];
2024-02-26 20:06:58 +01:00
};
};
crypt = {
size = "100%";
content = {
name = "nixos";
type = "luks";
settings.allowDiscards = true;
content = {
type = "btrfs";
extraArgs = [ "-f" ];
subvolumes = {
"nixos" = {
mountpoint = "/";
mountOptions = [ "compress=zstd" "noatime" ];
};
"home" = {
mountpoint = "/home";
mountOptions = [ "compress=zstd" "noatime" ];
};
"nix" = {
mountpoint = "/nix";
mountOptions = [ "compress=zstd" "noatime" ];
};
};
};
};
};
};
};
};
}