2017-05-01 22:12:33 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with import <stockholm/lib>;
|
|
|
|
{
|
|
|
|
imports = [
|
2017-07-15 17:01:02 +00:00
|
|
|
<stockholm/makefu>
|
2017-05-01 22:12:33 +00:00
|
|
|
<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix>
|
|
|
|
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
|
2017-07-15 17:01:02 +00:00
|
|
|
<stockholm/makefu/2configs/tools/core.nix>
|
2017-05-01 22:12:33 +00:00
|
|
|
];
|
|
|
|
# TODO: NIX_PATH and nix.nixPath are being set by default.nix right now
|
|
|
|
# cd ~/stockholm ; nix-build -A config.system.build.isoImage -I nixos-config=makefu/1systems/iso.nix -I secrets=/home/makefu/secrets/iso /var/src/nixpkgs/nixos
|
2018-12-05 15:53:09 +00:00
|
|
|
krebs.build.host = { cores = 0; };
|
2018-09-10 11:56:24 +00:00
|
|
|
isoImage.isoBaseName = lib.mkForce "stockholm";
|
2017-05-01 22:12:33 +00:00
|
|
|
krebs.hidden-ssh.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
aria2
|
|
|
|
ddrescue
|
|
|
|
];
|
|
|
|
environment.extraInit = ''
|
|
|
|
EDITOR=vim
|
|
|
|
'';
|
|
|
|
# iso-specific
|
|
|
|
boot.kernelParams = [ "copytoram" ];
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
hostKeys = [
|
|
|
|
{ bits = 8192; type = "ed25519"; path = "/etc/ssh/ssh_host_ed25519_key"; }
|
|
|
|
];
|
|
|
|
};
|
|
|
|
# enable ssh in the iso boot process
|
|
|
|
systemd.services.sshd.wantedBy = lib.mkForce [ "multi-user.target" ];
|
|
|
|
# hack `tee` behavior
|
|
|
|
nixpkgs.config.packageOverrides = super: {
|
2017-05-24 00:32:39 +00:00
|
|
|
irc-announce = super.callPackage <stockholm/krebs/5pkgs/simple/irc-announce> {
|
2017-06-20 17:30:14 +00:00
|
|
|
pkgs = pkgs // {
|
|
|
|
coreutils = pkgs.symlinkJoin {
|
|
|
|
name = "coreutils-hack";
|
|
|
|
paths = [
|
|
|
|
pkgs.coreutils
|
|
|
|
(pkgs.writeDashBin "tee" ''
|
|
|
|
if test "$1" = /dev/stderr; then
|
|
|
|
while read -r line; do
|
|
|
|
echo "$line"
|
|
|
|
echo "$line" >&2
|
|
|
|
done
|
|
|
|
else
|
|
|
|
${super.coreutils}/bin/tee "$@"
|
|
|
|
fi
|
|
|
|
'')
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2017-05-01 22:12:33 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|