repair
This commit is contained in:
parent
7061c52ef6
commit
2828cef769
|
@ -1,5 +0,0 @@
|
||||||
{pkgs, ...}: {
|
|
||||||
xdg.portal.extraPortals = [pkgs.xdg-desktop-portal-gtk];
|
|
||||||
|
|
||||||
programs.dconf.enable = true;
|
|
||||||
}
|
|
|
@ -1,28 +1,28 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
inputs,
|
# inputs,
|
||||||
pkgs,
|
# pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.setups.secureBoot;
|
cfg = config.setups.secureBoot;
|
||||||
in {
|
in {
|
||||||
imports = [
|
# imports = [
|
||||||
inputs.lanzaboote.nixosModules.lanzaboote
|
# inputs.lanzaboote.nixosModules.lanzaboote
|
||||||
];
|
# ];
|
||||||
|
|
||||||
options.setups.secureBoot.enable = lib.mkEnableOption "Secure Boot";
|
options.setups.secureBoot.enable = lib.mkEnableOption "Secure Boot";
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
environment.systemPackages = [
|
# environment.systemPackages = [
|
||||||
pkgs.sbctl
|
# pkgs.sbctl
|
||||||
];
|
# ];
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = lib.mkForce false;
|
# boot.loader.systemd-boot.enable = lib.mkForce false;
|
||||||
|
|
||||||
boot.lanzaboote = {
|
# boot.lanzaboote = {
|
||||||
enable = lib.mkForce true;
|
# enable = lib.mkForce true;
|
||||||
pkiBundle = lib.mkDefault "/var/lib/sbctl";
|
# pkiBundle = lib.mkDefault "/var/lib/sbctl";
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,6 +124,68 @@ b | boot)
|
||||||
|
|
||||||
run boot
|
run boot
|
||||||
;;
|
;;
|
||||||
|
t | test)
|
||||||
|
shift
|
||||||
|
|
||||||
|
if (($# > 0)); then
|
||||||
|
error 'too many arguments'
|
||||||
|
fi
|
||||||
|
|
||||||
|
run test
|
||||||
|
;;
|
||||||
|
bld | build)
|
||||||
|
shift
|
||||||
|
|
||||||
|
if (($# > 0)); then
|
||||||
|
error 'too many arguments'
|
||||||
|
fi
|
||||||
|
|
||||||
|
run build
|
||||||
|
;;
|
||||||
|
dbld | dry-build)
|
||||||
|
shift
|
||||||
|
|
||||||
|
if (($# > 0)); then
|
||||||
|
error 'too many arguments'
|
||||||
|
fi
|
||||||
|
|
||||||
|
run dry-build
|
||||||
|
;;
|
||||||
|
da | dry-activate)
|
||||||
|
shift
|
||||||
|
|
||||||
|
if (($# > 0)); then
|
||||||
|
error 'too many arguments'
|
||||||
|
fi
|
||||||
|
|
||||||
|
run dry-activate
|
||||||
|
;;
|
||||||
|
vm | build-vm)
|
||||||
|
shift
|
||||||
|
|
||||||
|
if (($# > 0)); then
|
||||||
|
error 'too many arguments'
|
||||||
|
fi
|
||||||
|
|
||||||
|
run build-vm
|
||||||
|
;;
|
||||||
|
i | img | build-image)
|
||||||
|
shift
|
||||||
|
|
||||||
|
if (($# < 1)); then
|
||||||
|
error 'image variant is required'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if (($# > 1)); then
|
||||||
|
error 'too many arguments'
|
||||||
|
fi
|
||||||
|
|
||||||
|
variant=$1
|
||||||
|
|
||||||
|
flags+=("$variant")
|
||||||
|
|
||||||
|
run build-image
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
error 'invalid subcommand'
|
error 'invalid subcommand'
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue