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 = [
../nuos/disk-config.nix
../muos/disk-config.nix
../../common/boot.nix
];

View file

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