finished modifying luks-lvm
This commit is contained in:
parent
b6d1ba3a24
commit
086a5dbc08
2 changed files with 20 additions and 13 deletions
|
|
@ -32,7 +32,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
disko.devices = pkgs.callPackage ../disko/luks-lvm.nix {
|
||||||
|
disks = [ "/dev/nvme" ]; # replace this with your disk name i.e. /dev/nvme0n1
|
||||||
|
};
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
# still possible to use this option, but it's recommended to use it in conjunction
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ disks ? [ "/dev/nvme0n1" ], ... }: {
|
{ disks ? [ "/dev/nvme0n1" ], ... }: {
|
||||||
disk = {
|
disk = {
|
||||||
nvme0n1 = {
|
disk-0 = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = builtins.elemAt disks 0;
|
device = builtins.elemAt disks 0;
|
||||||
content = {
|
content = {
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
partitions = [
|
partitions = [
|
||||||
{
|
{
|
||||||
type = "partition";
|
type = "partition";
|
||||||
|
extraArgs = "--label nixboot01";
|
||||||
name = "ESP";
|
name = "ESP";
|
||||||
start = "1MiB";
|
start = "1MiB";
|
||||||
end = "100MiB";
|
end = "100MiB";
|
||||||
|
|
@ -22,19 +23,21 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
# {
|
{
|
||||||
# name = "swap";
|
name = "swap";
|
||||||
# type = "partition";
|
type = "partition";
|
||||||
# start = "101MiB";
|
extraArgs = "--label nixswap01";
|
||||||
# end = "40960MiB";
|
start = "101MiB";
|
||||||
# part-type = "primary";
|
end = "40960MiB";
|
||||||
# content = {
|
part-type = "primary";
|
||||||
# type = "swap";
|
content = {
|
||||||
# randomEncryption = true;
|
type = "swap";
|
||||||
# };
|
randomEncryption = true;
|
||||||
# }
|
};
|
||||||
|
}
|
||||||
{
|
{
|
||||||
type = "partition";
|
type = "partition";
|
||||||
|
extraArgs = "--label nixpv01";
|
||||||
name = "luks";
|
name = "luks";
|
||||||
start = "40960MiB";
|
start = "40960MiB";
|
||||||
end = "100%";
|
end = "100%";
|
||||||
|
|
@ -59,6 +62,7 @@
|
||||||
lvs = {
|
lvs = {
|
||||||
root = {
|
root = {
|
||||||
type = "lvm_lv";
|
type = "lvm_lv";
|
||||||
|
extraArgs = "--label nixroot";
|
||||||
size = "128G";
|
size = "128G";
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
|
|
@ -71,6 +75,7 @@
|
||||||
};
|
};
|
||||||
home = {
|
home = {
|
||||||
type = "lvm_lv";
|
type = "lvm_lv";
|
||||||
|
extraArgs = "--label nixhome";
|
||||||
size = "25G";
|
size = "25G";
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue