Add disko

This commit is contained in:
Florian RICHER 2025-01-29 22:15:35 +01:00
parent 259cb74fd3
commit 983b89a5f4
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
8 changed files with 98 additions and 35 deletions

View file

@ -11,21 +11,11 @@
# Include the results of the hardware scan.
./hardware-configuration.nix
./disko-config.nix
];
# Bootloader.
# For lanzaboote see https://github.com/nix-community/lanzaboote/blob/master/docs/QUICK_START.md
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.lanzaboote = {
enable = true;
pkiBundle = "/var/lib/sbctl";
};
boot.loader.systemd-boot.windows = {
"11-pro" = {
title = "Windows 11 Pro";
efiDeviceHandle = "HD1b";
};
};
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Limit the number of generations to keep

View file

@ -0,0 +1,33 @@
{
disko.devices = {
disk = {
main = {
device = "/dev/nvme0n1";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
type = "EF00";
size = "500M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}

View file

@ -13,17 +13,6 @@
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/b10668d4-6394-4e00-b6ec-54fe688484d2";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/FACE-AC18";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/var/lib/swapfile"; size = 8*1024; }
];