init alphaOS for laptop

This commit is contained in:
Noa Aarts 2025-11-17 19:29:31 +01:00
parent dba3bbfb31
commit 51168f04a0
Signed by: noa
GPG key ID: 1850932741EFF672
2 changed files with 43 additions and 22 deletions

View file

@ -5,7 +5,7 @@
}: }:
{ {
imports = [ imports = [
../nuos/disk-config.nix ../muos/disk-config.nix
../../common/boot.nix ../../common/boot.nix
]; ];

View file

@ -1,28 +1,49 @@
# Example to create a bios compatible gpt partition
{ lib, ... }:
{ {
disko.devices = { disko.devices = {
disk = { disk.main = {
main = { device = lib.mkDefault "/dev/nvme0n1";
device = "/dev/disk/by-id/nvme-Samsung_SSD_980_PRO_1TB_S5GXNX0RB19202X";
type = "disk"; type = "disk";
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
ESP = { esp = {
priority = 1;
name = "ESP";
start = "1M";
end = "1024M";
type = "EF00"; type = "EF00";
size = "1000M";
content = { content = {
type = "filesystem"; type = "filesystem";
format = "vfat"; format = "vfat";
mountpoint = "/boot"; mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
}; };
}; };
root = { root = {
size = "100%"; size = "100%";
content = { content = {
type = "filesystem"; type = "btrfs";
format = "ext4"; extraArgs = [ "-f" ];
subvolumes = {
"/rootfs" = {
mountpoint = "/"; mountpoint = "/";
}; };
"/home" = {
mountOptions = [ "compress=zstd" ];
mountpoint = "/home";
};
"/nix" = {
mountOptions = [
"compress=zstd"
"noatime"
];
mountpoint = "/nix";
};
};
}; };
}; };
}; };