feat: NixOS | add secure boot and nixos-hardware flake

This commit is contained in:
2025-02-02 16:11:14 +05:00
parent 296fb3cd99
commit ac6ac36aa4
3 changed files with 235 additions and 4 deletions

View File

@@ -9,8 +9,18 @@
inputs.nixpkgs.follows = "nixpkgs";
};
# Hyprland cachix flake
hyprland.url = "github:hyprwm/Hyprland";
# NixOS community managed hardware specific features/fixes
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
# Secure boot
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.2";
inputs.nixpkgs.follows = "nixpkgs";
};
# Disko
disko = {
url = "github:nix-community/disko";
@@ -23,6 +33,8 @@
nixpkgs,
home-manager,
disko,
lanzaboote,
nixos-hardware,
...
} @ inputs:
let
@@ -35,7 +47,9 @@
"${host}" = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
disko.nixosModules.disko
lanzaboote.nixosModules.lanzaboote
disko.nixosModules.disko
nixos-hardware.nixosModules.framework-13-7040-amd
./nixos/configuration.nix
./nixos/disko-config.nix
./nixos/hardware-configuration.nix