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,27 +1,48 @@
# 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;
type = "EF00"; name = "ESP";
size = "1000M"; start = "1M";
content = { end = "1024M";
type = "filesystem"; type = "EF00";
format = "vfat"; content = {
mountpoint = "/boot"; type = "filesystem";
}; format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
}; };
root = { };
size = "100%"; root = {
content = { size = "100%";
type = "filesystem"; content = {
format = "ext4"; type = "btrfs";
mountpoint = "/"; extraArgs = [ "-f" ];
subvolumes = {
"/rootfs" = {
mountpoint = "/";
};
"/home" = {
mountOptions = [ "compress=zstd" ];
mountpoint = "/home";
};
"/nix" = {
mountOptions = [
"compress=zstd"
"noatime"
];
mountpoint = "/nix";
};
}; };
}; };
}; };