Skip to content
Snippets Groups Projects
Commit dca3fc21 authored by Benoit Donneaux's avatar Benoit Donneaux
Browse files

Simplify config leaving default values

parent e0fdbe15
No related branches found
No related tags found
2 merge requests!433Reworked hro-config as new morph grid in a branch we can merge in develop,!429update production
......@@ -5,6 +5,4 @@
"prefixLength" = 24;
"gateway" = "185.225.209.1";
"gatewayInterface" = "eno1";
"grubDeviceID" = "nodev"; #might be wrong
"systemd-boot" = false;
}
......@@ -5,6 +5,4 @@
"prefixLength" = 29;
"gateway" = "38.170.241.33";
"gatewayInterface" = "eno1";
"grubDeviceID" = "nodev"; #nodev if we want to use efi (double check)
"systemd-boot" = false;
}
......@@ -5,7 +5,6 @@
"prefixLength" = 24;
"gateway" = "151.80.28.254";
"gatewayInterface" = "eno3";
#"grubDeviceID" = "nodev";
"grubDeviceID" = "nvme-eui.e8238fa6bf530001001b448b463b77bf";
"systemd-boot" = true;
}
......@@ -68,10 +68,11 @@ let
{ type = lib.types.str;
example = "wwn-0x5000c500936410b9";
description = "The ID of the disk on which to install grub.";
default = "nodev";
};
systemd-boot = lib.mkOption
{ type = lib.types.bool;
example = false;
default = false;
description = "Fill later";
};
......@@ -110,7 +111,7 @@ in {
{ boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = if cfg.grubDeviceID == "nodev" then "nodev" else "/dev/disk/by-id/${cfg.grubDeviceID}";
boot.loader.systemd-boot.enable = if cfg.systemd-boot == "" then false else cfg.systemd-boot;
boot.loader.systemd-boot.enable = cfg.systemd-boot;
boot.loader.timeout = 10;
networking.firewall.enable = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment