add base-efi.nix and base-bios.nix

This commit is contained in:
Daniel Langbein 2024-02-06 17:06:07 +01:00
parent afc01e37bd
commit cef305fef3
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
9 changed files with 25 additions and 4 deletions

View File

@ -6,6 +6,7 @@
../../modules/home-manager.nix ../../modules/home-manager.nix
../../modules/nur-and-unstable.nix ../../modules/nur-and-unstable.nix
../../modules/base.nix ../../modules/base.nix
../../modules/base-bios.nix
../../modules/power-management.nix ../../modules/power-management.nix
../../modules/ntfs.nix ../../modules/ntfs.nix
../../modules/ssh-fde-unlock.nix ../../modules/ssh-fde-unlock.nix
@ -36,6 +37,9 @@
yoda.btrfsFileSystems = ["/"]; yoda.btrfsFileSystems = ["/"];
#yoda.btrfsMounts = yoda.btrfsFileSystems; #yoda.btrfsMounts = yoda.btrfsFileSystems;
# BIOS
boot.loader.grub.devices = ["/dev/disk/by-uuid/c033a402-8616-4aa7-922e-556f60a64a6c"];
# List all available kernel versions: # List all available kernel versions:
# `nix repl` -> `:l <nixpkgs>` -> `pkgs.linuxPackages` and press `TAB` # `nix repl` -> `:l <nixpkgs>` -> `pkgs.linuxPackages` and press `TAB`
# Default. # Default.

View File

@ -7,6 +7,7 @@
../../modules/home-manager.nix ../../modules/home-manager.nix
../../modules/nur-and-unstable.nix ../../modules/nur-and-unstable.nix
../../modules/base.nix ../../modules/base.nix
../../modules/base-efi.nix
../../modules/headless.nix ../../modules/headless.nix
../../modules/ssh-fde-unlock.nix ../../modules/ssh-fde-unlock.nix

View File

@ -7,6 +7,7 @@
../../modules/home-manager.nix ../../modules/home-manager.nix
../../modules/nur-and-unstable.nix ../../modules/nur-and-unstable.nix
../../modules/base.nix ../../modules/base.nix
../../modules/base-efi.nix
../../modules/headless.nix ../../modules/headless.nix
../../modules/ssh-fde-unlock.nix ../../modules/ssh-fde-unlock.nix

View File

@ -6,6 +6,7 @@
../../modules/home-manager.nix ../../modules/home-manager.nix
../../modules/nur-and-unstable.nix ../../modules/nur-and-unstable.nix
../../modules/base.nix ../../modules/base.nix
../../modules/base-efi.nix
../../modules/power-management.nix ../../modules/power-management.nix
../../modules/ntfs.nix ../../modules/ntfs.nix
../../modules/git.nix ../../modules/git.nix

View File

@ -6,6 +6,7 @@
../../modules/home-manager.nix ../../modules/home-manager.nix
../../modules/nur-and-unstable.nix ../../modules/nur-and-unstable.nix
../../modules/base.nix ../../modules/base.nix
../../modules/base-efi.nix
../../modules/power-management.nix ../../modules/power-management.nix
../../modules/tuxedo-rs.nix ../../modules/tuxedo-rs.nix
../../modules/ntfs.nix ../../modules/ntfs.nix

View File

@ -7,6 +7,7 @@
../../modules/home-manager.nix ../../modules/home-manager.nix
../../modules/nur-and-unstable.nix ../../modules/nur-and-unstable.nix
../../modules/base.nix ../../modules/base.nix
../../modules/base-efi.nix
../../modules/headless.nix ../../modules/headless.nix
../../modules/ssh-fde-unlock.nix ../../modules/ssh-fde-unlock.nix

10
modules/base-bios.nix Normal file
View File

@ -0,0 +1,10 @@
{ config, pkgs, ... }:
{
# Bootloader.
boot.loader.grub = {
# This has to be filled out in config.nix:
# devices = [ "/dev/disk/by-uuid/..." ];
efiSupport = true;
efiInstallAsRemovable = true;
};
}

6
modules/base-efi.nix Normal file
View File

@ -0,0 +1,6 @@
{ config, pkgs, ... }:
{
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}

View File

@ -14,10 +14,6 @@
# Allow unfree packages. # Allow unfree packages.
nixpkgs.config.allowUnfree = false; nixpkgs.config.allowUnfree = false;
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Enables wireless support via wpa_supplicant. # Enables wireless support via wpa_supplicant.
# networking.wireless.enable = true; # networking.wireless.enable = true;