From 2810ba1412c2715477bd38c4693a5fb953caa78c Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Sat, 24 Jan 2026 15:02:42 -0800 Subject: [PATCH] Enable flakes in kexec image and comma integration --- flake.nix | 8 ++++++-- machines/ephemeral/minimal.nix | 5 +++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index cd9fb5c..55d3fca 100644 --- a/flake.nix +++ b/flake.nix @@ -145,11 +145,15 @@ machineHosts; packages = + with inputs; let - mkEphemeral = system: format: inputs.nixos-generators.nixosGenerate { + mkEphemeral = system: format: nixos-generators.nixosGenerate { inherit system; inherit format; - modules = [ ./machines/ephemeral/minimal.nix ]; + modules = [ + ./machines/ephemeral/minimal.nix + nix-index-database.nixosModules.default + ]; }; in { diff --git a/machines/ephemeral/minimal.nix b/machines/ephemeral/minimal.nix index 7f359e3..fd3adf5 100644 --- a/machines/ephemeral/minimal.nix +++ b/machines/ephemeral/minimal.nix @@ -5,6 +5,8 @@ (modulesPath + "/installer/cd-dvd/channel.nix") ../../common/machine-info ../../common/ssh.nix + ../../common/flakes.nix + ../../common/shell.nix ]; boot.initrd.availableKernelModules = [ @@ -36,6 +38,7 @@ git-lfs wget htop + btop dnsutils pciutils usbutils @@ -54,5 +57,7 @@ }; }; + nix.flakes.enable = true; + users.users.root.openssh.authorizedKeys.keys = config.machines.ssh.userKeys; }