1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-16 20:21:32 +03:00
mobile-nixos/modules/initrd-nc-shell.nix
2018-06-17 17:50:32 +00:00

26 lines
466 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.mobile.boot.stage-1.nc-shell;
in
{
options.mobile.boot.stage-1.nc-shell = {
enable = mkOption {
type = types.bool;
default = false;
description = ''
This is the "everything is going wrong" way to debug.
'';
};
};
config.mobile.boot.stage-1 = lib.mkIf cfg.enable {
init = ''
# THIS IS HIGHLY INSECURE
nc -lk -p 2323 -e ${shell} &
'';
};
}