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 = {
disk = {
main = {
inherit device;
disk0 = {
device = "/dev/nvme0n1";
type = "disk";
content = {
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 =
[ (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" ];

View file

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

View file

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