laptop disko test

This commit is contained in:
2025-02-07 23:31:20 -05:00
parent 508a3ccc9b
commit ae019440a5
4 changed files with 51 additions and 3 deletions

40
etcnixos/disko_mreow.nix Normal file
View File

@@ -0,0 +1,40 @@
{
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/sdb";
# device = "/dev/nvme0n1";
content = {
type = "gpt";
partitions = {
ESP = {
size = "500M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
luks = {
size = "100%";
content = {
type = "luks";
name = "crypted";
settings.allowDiscards = true;
passwordFile = "/tmp/secret.key";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
};
}

View File

@@ -20,6 +20,11 @@
url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
inputs.nixpkgs.follows = "nixpkgs";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =

View File

@@ -13,6 +13,9 @@
inputs.nixos-hardware.nixosModules.framework-12th-gen-intel
inputs.lanzaboote.nixosModules.lanzaboote
inputs.disko.nixosModules.disko
./disko_mreow.nix
];
hardware.framework.laptop13.audioEnhancement = {