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,6 +11,7 @@
# Include the results of the hardware scan.
./hardware-configuration.nix
./disko-config.nix
];
# Bootloader.

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,19 +13,8 @@
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/e0c9f32c-0a05-4fec-a3d5-5507b9c0b3c2";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/3F81-54F0";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/b0aedbe7-9ffe-4039-9151-4d64a13b133d"; }
[ { device = "/var/lib/swapfile"; size = 8*1024; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking