This repository has been archived on 2024-07-08. You can view files and clone it, but cannot push or open issues or pull requests.
nix-config-tn/images/rpi/flake.nix
2024-03-18 20:26:02 +11:00

31 lines
895 B
Nix

{
description = "A flake to build a basic NixOS iso";
inputs.nixos.url = "github:nixos/nixpkgs/nixos-22.11";
outputs =
{ self
, nixos
,
}: {
nixosConfigurations =
let
exampleBase = {
isoImage.squashfsCompression = "gzip -Xcompression-level 1";
systemd.services.sshd.wantedBy = nixos.lib.mkForce [ "multi-user.target" ];
users.users.root.openssh.authorizedKeys.keys = [ "<my ssh key>" ];
};
in
{
x86 = nixos.lib.nixosSystem {
system = "x86_64-linux";
modules = [
"${nixos}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
exampleBase
];
};
example = nixos.lib.nixosSystem {
system = "x86_64-linux";
modules = [ exampleBase ];
};
};
};
}