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

32 lines
895 B
Nix
Raw Normal View History

2024-03-18 04:06:00 -05:00
{
description = "A flake to build a basic NixOS iso";
inputs.nixos.url = "github:nixos/nixpkgs/nixos-23.11";
2024-03-18 04:26:02 -05:00
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 ];
};
};
2024-03-18 04:06:00 -05:00
};
}