This repository has been archived by the owner on Nov 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vm.nix
62 lines (50 loc) · 1.51 KB
/
vm.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# to use with nixos-shell
{ pkgs, lib, ... }:
let
userNixpkgs = /home/teto/nixpkgs;
customOverlay = /home/teto/home;
vlans = [ 0 1 ];
in
{
# imports = [
# /home/teto/dotfiles/nixpkgs/account-teto.nix
# ];
# cmdline="root=/dev/sda1 earlycon=ttyS0 console=ttyS0 init=/nix/var/nix/profiles/system/init boot.debug=1 boot.consoleLogLevel=1 nokaslr tcp_probe.port=5201 tcp_probe.full=1";
# # # x86_64 is a symlink towards x86
# kernel="/home/teto/mptcp/build/arch/x86_64/boot/bzImage";
# services.mingetty.helpLine = "[9;0][14;0]";
# Will add an eth
virtualisation.vlans = vlans;
# lib.mkForce
virtualisation.qemu.networkingOptions = [ ];
# slirpvde -s vde0.ctl -dhcp
# one can
environment.systemPackages = with pkgs; [
neovim
dhcp # allows to run dhclient
# mptcpnumerics # from my overlay ? copy it here
];
services.xserver.enable = false;
networking = {
useDHCP = false;
localCommands = ''
echo "HELLO YOU";
'';
};
# "nixos=https://github.com/nixos/nixpkgs-channels/archive/nixos-19.03.tar.gz"
nix = {
nixPath = [
"nixos-unstable=https://github.com/nixos/nixpkgs-channels/archive/nixos-unstable.tar.gz"
]
++ pkgs.stdenv.lib.optional (builtins.pathExists userNixpkgs) "nixpkgs=${builtins.toString userNixpkgs}";
};
networking.mptcp.enable = true;
# mountNix
# nixos-shell.mounts.extraMounts = {
# # "/mnt/examples" = ./.;
# "/mnt/nixos-shell" = {
# target = ./..;
# cache = "none";
# };
# };
}