switched to disko on game-laptop

This commit is contained in:
Gerg-L 2023-03-07 21:50:03 -05:00
parent ac963c344f
commit e3e4a05def
4 changed files with 70 additions and 19 deletions

View file

@ -7,6 +7,7 @@ inputs: {
}: {
imports = [
(import ./prime.nix inputs)
(import ./disko.nix inputs)
(import ./gaming.nix inputs)
];
@ -75,22 +76,4 @@ inputs: {
kernelModules = ["kvm-amd"];
kernelPackages = pkgs.linuxPackages_zen;
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/0822f37a-e55b-4b56-aeae-b6f4a11306c3";
fsType = "ext4";
label = "nixos";
noCheck = false;
mountPoint = "/";
neededForBoot = true;
};
"/boot" = {
device = "/dev/disk/by-uuid/EA2C-E488";
fsType = "vfat";
label = "BOOT";
noCheck = false;
mountPoint = "/boot";
neededForBoot = true;
};
};
}

View file

@ -0,0 +1,39 @@
_: {
disko.devices = {
disk.nvme0n1 = {
device = "/dev/disk/by-id/nvme-WDC_PC_SN530_SDBPNPZ-512G-1006_21311N802456";
type = "disk";
content = {
type = "table";
format = "gpt";
partitions = [
{
type = "partition";
name = "ESP";
start = "1049KB";
end = "538MB";
bootable = true;
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
}
{
name = "root";
type = "partition";
start = "538MB";
end = "100%";
part-type = "primary";
bootable = true;
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
}
];
};
};
};
}