mirror of
https://github.com/Moe1369/nix-fleet.git
synced 2026-04-24 23:59:07 +02:00
disko
This commit is contained in:
@@ -1,14 +1,42 @@
|
|||||||
{ ... }: {
|
{ ... }: {
|
||||||
flake.nixosModules.disks-sys-singledisk = {
|
flake.nixosModules.disks-sys-singledisk = {
|
||||||
fileSystems."/" = {
|
disko.devices = {
|
||||||
device = "/dev/disk/by-label/root";
|
disk = {
|
||||||
fsType = "xfs";
|
main = {
|
||||||
};
|
type = "disk";
|
||||||
|
device = "/dev/nvme0n1";
|
||||||
fileSystems."/boot" = {
|
content = {
|
||||||
device = "/dev/disk/by-label/boot";
|
type = "gpt";
|
||||||
fsType = "vfat";
|
partitions = {
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
ESP = {
|
||||||
|
size = "512M";
|
||||||
|
type = "EF00";
|
||||||
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "vfat";
|
||||||
|
mountpoint = "/boot";
|
||||||
|
mountOptions = [ "fmask=0077" "dmask=0077" ];
|
||||||
|
extraArgs = [ "-n" "boot" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
luks = {
|
||||||
|
size = "100%";
|
||||||
|
content = {
|
||||||
|
type = "luks";
|
||||||
|
name = "cryptroot";
|
||||||
|
settings.allowDiscards = true;
|
||||||
|
content = {
|
||||||
|
type = "filesystem";
|
||||||
|
format = "xfs";
|
||||||
|
mountpoint = "/";
|
||||||
|
extraArgs = [ "-L" "root" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [{
|
swapDevices = [{
|
||||||
|
|||||||
Reference in New Issue
Block a user