add resque

This commit is contained in:
Noa Aarts 2024-11-26 11:42:16 +01:00
parent ca7450f55c
commit 711aab0bf9
Signed by: noa
GPG key ID: 1850932741EFF672
2 changed files with 32 additions and 4 deletions

View file

@ -19,6 +19,7 @@
../../common
./rescue.nix
./restic.nix
];
@ -173,7 +174,8 @@
];
xdg = {
portal = {enable = true;
portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gnome ];
};
};

26
hosts/lambdaos/rescue.nix Normal file
View file

@ -0,0 +1,26 @@
{ pkgs, ... }:
let
netboot = import (pkgs.path + "/nixos/lib/eval-config.nix") {
modules = [
(pkgs.path + "/nixos/modules/installer/netboot/netboot-minimal.nix")
module
];
};
module = {
# you will want to add options here to support your filesystem
# and also maybe ssh to let you in
boot.supportedFilesystems = [ "zfs" ];
};
in
{
boot.loader.grub.extraEntries = ''
menuentry "Nixos Installer" {
linux ($drive1)/rescue-kernel init=${netboot.config.system.build.toplevel}/init ${toString netboot.config.boot.kernelParams}
initrd ($drive1)/rescue-initrd
}
'';
boot.loader.grub.extraFiles = {
"rescue-kernel" = "${netboot.config.system.build.kernel}/bzImage";
"rescue-initrd" = "${netboot.config.system.build.netbootRamdisk}/initrd";
};
}