Add majin's disks description
This commit is contained in:
parent
bc9a7f1f86
commit
3d75273a40
|
@ -41,7 +41,7 @@ let
|
|||
}
|
||||
|
||||
else {
|
||||
|
||||
device = "/dev/nvme1n1p3";
|
||||
fsType = "ext4";
|
||||
};
|
||||
};
|
||||
|
@ -56,8 +56,8 @@ in {
|
|||
installer = import ./installer.nix (params // {
|
||||
host = if inVM then "majinVM" else "majin";
|
||||
diskModule = (modules.disk
|
||||
(if inVM then ./majin/vm.disk.nix else ./majin/disk.nix)
|
||||
(if inVM then "/dev/sda" else "/den/"));
|
||||
(if inVM then ./majin/vm.disk.nix else ./majin/disks.nix)
|
||||
(if inVM then "/dev/sda" else "/dev/nvme1n1"));
|
||||
});
|
||||
|
||||
majin = nixpkgs.lib.nixosSystem {
|
||||
|
@ -68,8 +68,8 @@ in {
|
|||
"${nixpkgs}/nixos/modules/profiles/qemu-guest.nix"
|
||||
this
|
||||
(disk
|
||||
(builtins.trace ">>>> ${toString inVM}" (if inVM then ./majin/vm.disk.nix else ./majin/disk.nix))
|
||||
(if inVM then "/dev/sda" else "/den/"))
|
||||
(if inVM then ./majin/vm.disk.nix else ./majin/disk.nix)
|
||||
(if inVM then "/dev/sda" else "/dev/nvme1n1"))
|
||||
|
||||
bootable
|
||||
base
|
||||
|
|
|
@ -0,0 +1,59 @@
|
|||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
nvme0n1 = {
|
||||
device = "/dev/nvme0n1";
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
nix = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/nix";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nvme1n1 = {
|
||||
device = "/dev/nvme1n1";
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
ESP = {
|
||||
size = "1G";
|
||||
type = "EF00";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
};
|
||||
};
|
||||
plainSwap = {
|
||||
size = "64G";
|
||||
content = {
|
||||
type = "swap";
|
||||
resumeDevice = true;
|
||||
};
|
||||
};
|
||||
|
||||
root = {
|
||||
size = "100%";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue