Skip to content

Commit

Permalink
refactor(nixosModules): update loadModule
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed Sep 21, 2023
1 parent f59f1a0 commit aa5f517
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 27 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 20 additions & 24 deletions nixos/nixosModules/boot/systemd-initrd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,31 @@
with lib;
mkMerge [
(mkIf cfg.__profiles__.systemd-initrd.enable {
boot = {
loader = {
# timeout = 0;
efi.canTouchEfiVariables = true;
# https://discourse.nixos.org/t/configure-grub-on-efi-system/2926/7
grub = {
enable = true;
efiSupport = true;
device = "nodev";
useOSProber = true;
};
loader = {
# timeout = 0;
efi.canTouchEfiVariables = true;
# https://discourse.nixos.org/t/configure-grub-on-efi-system/2926/7
grub = {
enable = true;
efiSupport = true;
device = "nodev";
useOSProber = true;
};
initrd = {
systemd = {
enable = true;
# emergencyAccess = true;
};
};
initrd = {
systemd = {
enable = true;
# emergencyAccess = true;
};
};
})
];

options =
with lib;
mkOpt {
__profiles__.systemd-initrd.enable = mkOption {
type = types.bool;
default = false;
description = "Enable systemd-initrd as bootloader.";
};
options = with lib; {
__profiles__.systemd-initrd.enable = mkOption {
type = types.bool;
default = false;
description = "Enable systemd-initrd as bootloader.";
};
};
}

0 comments on commit aa5f517

Please sign in to comment.