diff options
author | tv <tv@krebsco.de> | 2018-07-17 20:22:52 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-07-17 20:22:52 +0200 |
commit | 3dedfb8de4dc7e741f4db5310739884fba68b5bd (patch) | |
tree | 25e2955462d2998afe04356128f9d464d1b40b52 /makefu/1systems/kexec/config.nix | |
parent | 75aa3b118b6c74b2e87ccf7e3da53aa06fa7d569 (diff) | |
parent | 74698c904460db569a3c6c8355c0b25a94c98800 (diff) |
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'makefu/1systems/kexec/config.nix')
-rw-r--r-- | makefu/1systems/kexec/config.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/makefu/1systems/kexec/config.nix b/makefu/1systems/kexec/config.nix new file mode 100644 index 000000000..5bf19f978 --- /dev/null +++ b/makefu/1systems/kexec/config.nix @@ -0,0 +1,25 @@ +{ config, pkgs, lib, ... }: + +with import <stockholm/lib>; +{ + imports = [ + <stockholm/makefu> + # <stockholm/makefu/2configs/tools/core.nix> + <nixpkgs/nixos/modules/installer/netboot/netboot-minimal.nix> + <clever_kexec/kexec/kexec.nix> + ]; + # cd ~/stockholm ; nix-build '<nixpkgs/nixos>' -A config.system.build.kexec_tarball -j 4 -I nixos-config=makefu/1systems/iso.nix -I secrets=/home/makefu/secrets/iso + + krebs.build.host = config.krebs.hosts.iso; + krebs.hidden-ssh.enable = true; + environment.extraInit = '' + EDITOR=vim + ''; + services.openssh = { + enable = true; + hostKeys = [ + { bits = 8192; type = "ed25519"; path = "/etc/ssh/ssh_host_ed25519_key"; } + ]; + }; + systemd.services.sshd.wantedBy = lib.mkForce [ "multi-user.target" ]; +} |