Fixed? dimondback
This commit is contained in:
parent
ca0b850f92
commit
634e05739c
3 changed files with 4858 additions and 3 deletions
|
|
@ -18,7 +18,7 @@ in {
|
|||
options.${namespace}.presets.disko.ext4Swap = with types; {
|
||||
enable = mkBoolOpt false "Enable preset";
|
||||
device = mkOpt' str "/dev/nvme0n1";
|
||||
swapSize = mkOpt' int 32;
|
||||
swapSize = mkOpt' (nullOr int) 32;
|
||||
mountpoint = mkOpt' path "/";
|
||||
};
|
||||
|
||||
|
|
@ -58,7 +58,7 @@ in {
|
|||
type = "lvm_vg";
|
||||
lvs = {
|
||||
# lvcreate
|
||||
swap = {
|
||||
swap = mkIf (cfg.swapSize != null) {
|
||||
# Logical Volume = "swap", /dev/vg1/swap
|
||||
size = "${builtins.toString cfg.swapSize}G";
|
||||
content = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue