systemd-boot is default now

This commit is contained in:
Osman Faruk Bayram 2025-10-21 21:02:44 +03:00
parent b431744859
commit 42209ddb6a
9 changed files with 15 additions and 25 deletions

View file

@ -45,7 +45,6 @@ osbmModules = {
disko = { disko = {
enable = true; enable = true;
fileSystem = "zfs"; # options: "zfs", "ext4" fileSystem = "zfs"; # options: "zfs", "ext4"
systemd-boot = true;
initrd-ssh = { initrd-ssh = {
enable = true; enable = true;
ethernetDrivers = [ "igc" ]; ethernetDrivers = [ "igc" ];

View file

@ -34,7 +34,6 @@
disko = { disko = {
enable = true; enable = true;
fileSystem = "zfs"; fileSystem = "zfs";
systemd-boot = true;
initrd-ssh = { initrd-ssh = {
enable = true; enable = true;

View file

@ -16,10 +16,6 @@
hardware.sound.enable = true; hardware.sound.enable = true;
}; };
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "tartarus"; # Define your hostname. networking.hostName = "tartarus"; # Define your hostname.
# Enable networking # Enable networking

View file

@ -14,8 +14,6 @@
services.cloudflared.enable = true; services.cloudflared.enable = true;
}; };
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
i18n.inputMethod.enable = lib.mkForce false; i18n.inputMethod.enable = lib.mkForce false;
networking.hostName = "wallfacer"; networking.hostName = "wallfacer";
system.stateVersion = "25.05"; system.stateVersion = "25.05";

View file

@ -21,10 +21,6 @@
i18n.enable = true; i18n.enable = true;
}; };
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "ymir"; # Define your hostname. networking.hostName = "ymir"; # Define your hostname.
networking.firewall.allowedTCPPorts = [ networking.firewall.allowedTCPPorts = [

View file

@ -0,0 +1,8 @@
{config, lib, ...}:
{
config = lib.mkIf (config.osbmModules.hardware.systemd-boot.enable) {
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
};
}

View file

@ -1,5 +1,6 @@
{ {
imports = [ imports = [
./boot.nix
./sound.nix ./sound.nix
./nvidia.nix ./nvidia.nix
./hibernation.nix ./hibernation.nix

View file

@ -7,7 +7,6 @@
}: }:
let let
cfg = config.osbmModules.hardware.disko; cfg = config.osbmModules.hardware.disko;
inherit (config.networking) hostName;
# Default authorized keys for initrd SSH # Default authorized keys for initrd SSH
defaultAuthorizedKeys = [ defaultAuthorizedKeys = [
@ -27,12 +26,6 @@ in
]; ];
config = lib.mkMerge [ config = lib.mkMerge [
# Systemd-boot setup
(lib.mkIf (cfg.enable && cfg.systemd-boot) {
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
})
# Initrd SSH for remote unlocking # Initrd SSH for remote unlocking
(lib.mkIf (cfg.enable && cfg.initrd-ssh.enable) { (lib.mkIf (cfg.enable && cfg.initrd-ssh.enable) {
boot.initrd.network.enable = true; boot.initrd.network.enable = true;

View file

@ -185,6 +185,12 @@
}; };
}; };
systemd-boot.enable = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Use systemd-boot bootloader";
};
# Disko configuration (inspired by ZFS.nix) # Disko configuration (inspired by ZFS.nix)
disko = { disko = {
enable = lib.mkOption { enable = lib.mkOption {
@ -208,12 +214,6 @@
description = "Root filesystem type"; description = "Root filesystem type";
}; };
systemd-boot = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Use systemd-boot bootloader";
};
initrd-ssh = { initrd-ssh = {
enable = lib.mkOption { enable = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;