nixos-anywhere-example/template/iso.nix

19 lines
657 B
Nix
Raw Normal View History

2023-10-12 12:04:38 +02:00
# This module defines a small NixOS installation CD. It does not
# contain any graphical stuff.
# https://nixos.wiki/wiki/Creating_a_NixOS_live_CD
{ config, pkgs, ... }:
{
imports = [
<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix>
# Provide an initial copy of the NixOS channel so that the user
# doesn't need to run "nix-channel --update" first.
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
];
# Enable SSH in the boot process.
systemd.services.sshd.wantedBy = pkgs.lib.mkForce [ "multi-user.target" ];
users.users.root.openssh.authorizedKeys.keys = [
2023-10-24 17:54:10 +02:00
(builtins.readFile ./nitrokey.pub)
2023-10-12 12:04:38 +02:00
];
}