mirror of
https://github.com/Alexandre1a/NixOSDots.git
synced 2026-03-10 00:09:46 +01:00
Added secure boot
This commit is contained in:
parent
a278c49f32
commit
445856d98a
@ -6,6 +6,11 @@
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
|
||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||
|
||||
lanzaboote = {
|
||||
url = "github:nix-community/lanzaboote/master";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
# Hyprland
|
||||
hyprland = {
|
||||
|
||||
@ -6,6 +6,7 @@ in
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
modules.nixos.secureboot
|
||||
modules.common.module
|
||||
modules.nixos.secrets
|
||||
modules.nixos.gaming.amd
|
||||
|
||||
@ -21,6 +21,7 @@
|
||||
gnupg
|
||||
cmatrix
|
||||
gh
|
||||
sbctl
|
||||
# Browser
|
||||
inputs.zen-browser.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||
];
|
||||
|
||||
@ -37,6 +37,7 @@
|
||||
};
|
||||
|
||||
bootloader = ./nixos/bootloader.nix;
|
||||
secureboot = ./nixos/secureboot.nix;
|
||||
locale = ./nixos/locale.nix;
|
||||
secrets = ./nixos/secrets.nix;
|
||||
swap = ./nixos/swap.nix;
|
||||
|
||||
11
modules/nixos/secureboot.nix
Normal file
11
modules/nixos/secureboot.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{ pkgs, lib, ...}:
|
||||
|
||||
{
|
||||
boot.loader.systemd-boot.enable = lib.mkForce false;
|
||||
|
||||
boot.lanzaboote = {
|
||||
enable = true;
|
||||
pkiBundle = "/var/lib/sbctl";
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user