fix lemur installation

This commit is contained in:
Ray Andrew 2025-03-08 19:08:16 -06:00
parent af2df6a465
commit cae7b99424
No known key found for this signature in database
5 changed files with 52 additions and 13 deletions

14
README.md Normal file
View file

@ -0,0 +1,14 @@
## Pickwick
```bash
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy,format,mount ./hosts/pickwick/disko.nix
sudo nixos-install --root /mnt --flake .#pickwick
```
## Lemur
```bash
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy,format,mount ./hosts/lemur/disko.nix
sudo nixos-install --root /mnt --flake .#lemur
```

View file

@ -1,12 +1,8 @@
{
device ? throw "select device"
, ...
}:
{ {
disko.devices = { disko.devices = {
disk = { disk = {
main = { disk0 = {
inherit device; device = "/dev/nvme0n1";
type = "disk"; type = "disk";
content = { content = {
type = "gpt"; type = "gpt";
@ -61,6 +57,39 @@
}; };
}; };
}; };
disk1 = {
device = "/dev/nvme1n1";
type = "disk";
content = {
type = "gpt";
partitions = {
home = {
size = "50%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/home";
extraArgs = [
"-L"
"HOME"
];
};
};
data = {
size = "50%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/data";
extraArgs = [
"-L"
"DATA"
];
};
};
};
};
};
}; };
}; };
} }

View file

@ -4,7 +4,7 @@
imports = imports =
[ (modulesPath + "/installer/scan/not-detected.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
(import ./disko.nix { device = "/dev/nvme0n1"; }) ./disko.nix
]; ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ];

View file

@ -1,12 +1,8 @@
{
device ? throw "select device"
, ...
}:
{ {
disko.devices = { disko.devices = {
disk = { disk = {
main = { main = {
inherit device; device = "/dev/nvme0n1";
type = "disk"; type = "disk";
content = { content = {
type = "gpt"; type = "gpt";

View file

@ -4,7 +4,7 @@
imports = imports =
[ (modulesPath + "/installer/scan/not-detected.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
(import ./disko.nix { device = "/dev/nvme0n1"; }) ./disko.nix
inputs.nixos-hardware.nixosModules.framework-13-7040-amd inputs.nixos-hardware.nixosModules.framework-13-7040-amd
]; ];