From 1df80e29d2110ef344a7af3499930d7ec12c615d Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Mon, 11 Nov 2024 00:59:35 -0800 Subject: Add netboot image directly @arrakis --- flake.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 1db146a..903f70f 100644 --- a/flake.nix +++ b/flake.nix @@ -130,6 +130,22 @@ #sops-nix.nixosModules.sops ]; }; + + netboot = nixpkgs.lib.nixosSystem { + modules = [ + "${nixpkgs}/nixos/modules/installer/netboot/netboot-minimal.nix" + ({ + #isoImage.squashfsCompression = "gzip -Xcompression-level 1"; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + users.users = { + nixos.openssh.authorizedKeys.keys = [ (builtins.readFile ./hosts/common/users/nipsy/keys/id_arrakis.pub) ]; + root.openssh.authorizedKeys.keys = [ (builtins.readFile ./hosts/common/users/nipsy/keys/id_arrakis.pub) ]; + }; + }) + ]; + system = "x86_64-linux"; + }; + richese = nixpkgs.lib.nixosSystem rec { specialArgs = { inherit inputs outputs; }; modules = [ @@ -140,7 +156,6 @@ } ]; }; - }; overlays = import ./overlays {inherit inputs;}; -- cgit v1.2.3