feat: cleanup, secure boot for framework

This commit is contained in:
Kat Inskip 2024-03-17 10:38:09 -07:00
parent 15f40761fb
commit d37bd2c669
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
18 changed files with 297 additions and 144 deletions

View file

@ -1,8 +1,9 @@
_: {
boot.loader = {
{config, lib, ... }: let
inherit (lib.modules) mkIf;
in {
boot.loader = mkIf (config.boot.loader.grub.enable) {
timeout = null;
grub = {
enable = false;
useOSProber = true;
splashImage = ./splash.jpg;
extraConfig = ''

View file

@ -1,14 +0,0 @@
{
std,
config,
lib,
...
}: let
inherit (std) list;
inherit (lib.modules) mkDefault mkIf;
in {
boot = mkIf (list.elem "zfs" config.boot.supportedFilesystems) {
kernelPackages = mkDefault config.boot.zfs.package.latestCompatibleLinuxPackages;
zfs.enableUnstable = true;
};
}

13
nixos/profiles/uefi.nix Normal file
View file

@ -0,0 +1,13 @@
_: {
boot.loader = {
grub = {
devices = ["nodev"];
efiSupport = true;
gfxmodeEfi = "1920x1080";
};
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
};
}

View file

@ -12,6 +12,7 @@ in {
networking = {
networkmanager = {
enable = true;
wifi.backend = "iwd";
connectionConfig = {
"ipv6.ip6-privacy" = mkForce 0;
};