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
renovate[bot] 75daf6aa89 feat(deps)!: Update nixpkgs to nixos-23.11 (#26)
| datasource | package                          | from        | to          |
| ---------- | -------------------------------- | ----------- | ----------- |
| git-refs   | https://github.com/NixOS/nixpkgs | nixos-22.11 | nixos-23.11 |

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-27 08:36:50 +11:00

31 lines
895 B
Nix

{
description = "A flake to build a basic NixOS iso";
inputs.nixos.url = "github:nixos/nixpkgs/nixos-23.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 ];
};
};
};
}