fix lemur installation
This commit is contained in:
parent
af2df6a465
commit
cae7b99424
5 changed files with 52 additions and 13 deletions
14
README.md
Normal file
14
README.md
Normal 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
|
||||
```
|
||||
|
|
@ -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"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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" ];
|
||||
|
|
|
|||
|
|
@ -1,12 +1,8 @@
|
|||
{
|
||||
device ? throw "select device"
|
||||
, ...
|
||||
}:
|
||||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
main = {
|
||||
inherit device;
|
||||
device = "/dev/nvme0n1";
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "gpt";
|
||||
|
|
|
|||
|
|
@ -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
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue