This commit is contained in:
iFargle 2023-10-05 13:01:40 +09:00
parent 72d4cf648d
commit 0198b29594
2 changed files with 14 additions and 25 deletions

View file

@ -1,7 +1,7 @@
{ config, lib, pkgs, modulesPath, desktop, username, ... }: {
imports = [
# This machine won't be using secureboot
../../common/modules/boot.nixz
# ../../common/modules/boot.nix
./disks.nix
];
nixpkgs.config.allowUnfree = false;

View file

@ -6,30 +6,19 @@
disko.devices.disk.vda = {
device = "/dev/vda";
type = "disk";
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "BOOT";
start = "0%";
end = "550MiB";
bootable = true;
flags = [ "esp" ];
fs-type = "fat32";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
} # partition 1 (ESP)
{
name = "LUKS";
start = "550MiB";
end = "100%";
type = "gpt";
partitions = {
boot = {
size = "1M";
type = "EF02";
}; # partitions.boot
luks = {
size = "100%";
content = {
type = "luks";
name = "ROOT";
name = "crypted";
extraOpenArgs = [ "--allow-discards" ];
content = {
type = "btrfs";
@ -48,10 +37,10 @@
mountOptions = [ "compress=zstd" "noatime" ];
}; # nix
}; # subvolumes
}; # content.content
};# content
}; # content
} # partition 2 (/ BTRFS)
]; # partitions
}; # luks.partitions
}; # partitions
}; # content
}; # disko.devices.disk.vda
} # root