Fixed? dimondback

This commit is contained in:
Aleksandr Lebedev 2025-11-28 18:25:18 +01:00
parent ca0b850f92
commit 634e05739c
3 changed files with 4858 additions and 3 deletions

View file

@ -18,7 +18,7 @@ in {
options.${namespace}.presets.disko.ext4Swap = with types; { options.${namespace}.presets.disko.ext4Swap = with types; {
enable = mkBoolOpt false "Enable preset"; enable = mkBoolOpt false "Enable preset";
device = mkOpt' str "/dev/nvme0n1"; device = mkOpt' str "/dev/nvme0n1";
swapSize = mkOpt' int 32; swapSize = mkOpt' (nullOr int) 32;
mountpoint = mkOpt' path "/"; mountpoint = mkOpt' path "/";
}; };
@ -58,7 +58,7 @@ in {
type = "lvm_vg"; type = "lvm_vg";
lvs = { lvs = {
# lvcreate # lvcreate
swap = { swap = mkIf (cfg.swapSize != null) {
# Logical Volume = "swap", /dev/vg1/swap # Logical Volume = "swap", /dev/vg1/swap
size = "${builtins.toString cfg.swapSize}G"; size = "${builtins.toString cfg.swapSize}G";
content = { content = {

View file

@ -25,8 +25,9 @@ in {
else null; else null;
imports = lib.snowfall.fs.get-non-default-nix-files ./. ++ [../stargate/services/adguardhome.nix]; imports = lib.snowfall.fs.get-non-default-nix-files ./. ++ [../stargate/services/adguardhome.nix];
custom.presets.disko.ext4 = { custom.presets.disko.ext4Swap = {
enable = true; enable = true;
swapSize = null;
device = "/dev/sda"; device = "/dev/sda";
}; };
custom.presets.default = enabled; custom.presets.default = enabled;

File diff suppressed because it is too large Load diff