refactor: moved secure boot and disko
This commit is contained in:
parent
3ae9e4aae3
commit
82f1d9d5c9
3 changed files with 12 additions and 12 deletions
13
flake.nix
13
flake.nix
|
|
@ -40,18 +40,7 @@
|
||||||
users = [
|
users = [
|
||||||
"jml"
|
"jml"
|
||||||
];
|
];
|
||||||
extraModules = [
|
extraModules = [];
|
||||||
{ nixpkgs.config.allowUnfree = true; }
|
|
||||||
disko.nixosModules.disko
|
|
||||||
./hosts/titanium/disko.nix # TODO: Import this in mkSystem if both the file and module exist.
|
|
||||||
lanzaboote.nixosModules.lanzaboote
|
|
||||||
({ pkgs, lib, ... }: {
|
|
||||||
environment.systemPackages = [ pkgs.sbctl ];
|
|
||||||
boot.loader.systemd-boot.enable = lib.mkForce false;
|
|
||||||
boot.lanzaboote.enable = true;
|
|
||||||
boot.lanzaboote.pkiBundle = "/var/lib/sbctl";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
# `nix build .#nixosConfigurations.installIso.config.system.build.isoImage`
|
# `nix build .#nixosConfigurations.installIso.config.system.build.isoImage`
|
||||||
# https://github.com/nix-community/nixos-generators
|
# https://github.com/nix-community/nixos-generators
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{ inputs, ... }:
|
{ inputs, ... }:
|
||||||
{
|
{
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
imports = [
|
imports = [
|
||||||
../../modules/nixos/base.nix
|
../../modules/nixos/base.nix
|
||||||
../../modules/nixos/audio.nix
|
../../modules/nixos/audio.nix
|
||||||
|
|
@ -9,5 +10,8 @@
|
||||||
#./hardware.nix
|
#./hardware.nix
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
./nvidia.nix
|
./nvidia.nix
|
||||||
|
./secure-boot.nix
|
||||||
|
inputs.disko.nixosModules.disko
|
||||||
|
./disko.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
7
hosts/titanium/secure-boot.nix
Normal file
7
hosts/titanium/secure-boot.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{ pkgs, lib, inputs, ... }: {
|
||||||
|
imports = with inputs; [ lanzaboote.nixosModules.lanzaboote ];
|
||||||
|
environment.systemPackages = [ pkgs.sbctl ];
|
||||||
|
boot.loader.systemd-boot.enable = lib.mkForce false;
|
||||||
|
boot.lanzaboote.enable = true;
|
||||||
|
boot.lanzaboote.pkiBundle = "/var/lib/sbctl";
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue