diff options
author | lassulus <lass@blue.r> | 2018-06-28 00:12:11 +0200 |
---|---|---|
committer | lassulus <lass@blue.r> | 2018-06-28 00:12:11 +0200 |
commit | 370c2b511e1293e6112814c88ab8b93cac14ae2a (patch) | |
tree | 207dbd0f0d84809a56d676fcb15ff6f8205a643d /makefu/1systems/kexec | |
parent | dac47a8abdedda4863b56cb83941e9e16929669b (diff) | |
parent | 4d07a747298fca730ba42f29e3f054be390dbab6 (diff) |
Merge remote-tracking branch 'prism/makefu'
Diffstat (limited to 'makefu/1systems/kexec')
-rw-r--r-- | makefu/1systems/kexec/config.nix | 25 | ||||
-rw-r--r-- | makefu/1systems/kexec/source.nix | 3 |
2 files changed, 28 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" ]; +} diff --git a/makefu/1systems/kexec/source.nix b/makefu/1systems/kexec/source.nix new file mode 100644 index 000000000..e200dbfd2 --- /dev/null +++ b/makefu/1systems/kexec/source.nix @@ -0,0 +1,3 @@ +import <stockholm/makefu/source.nix> { + name="iso"; +} |