test: init vm config for mininet
This commit is contained in:
parent
ea68969f2c
commit
b08af779d6
4 changed files with 25 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
/target
|
||||
.direnv
|
||||
.envrc
|
||||
nixos.qcow2
|
||||
|
|
11
shell.nix
11
shell.nix
|
@ -1,4 +1,11 @@
|
|||
{ pkgs ? (import <nixpkgs>) { }, lib ? pkgs.lib }:
|
||||
let
|
||||
pkgs = import <nixpkgs> { };
|
||||
in
|
||||
pkgs.mkShell {
|
||||
buildInputs = with pkgs; [ cargo rustc rustfmt ];
|
||||
buildInputs = with pkgs; [
|
||||
cargo
|
||||
rustc
|
||||
rustfmt
|
||||
nixos-shell
|
||||
];
|
||||
}
|
||||
|
|
1
vm.nix
Symbolic link
1
vm.nix
Symbolic link
|
@ -0,0 +1 @@
|
|||
vm/vm.nix
|
14
vm/vm.nix
Normal file
14
vm/vm.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
virtualisation = {
|
||||
memorySize = 4 * 1024;
|
||||
cores = 4;
|
||||
};
|
||||
|
||||
programs.mininet.enable = true;
|
||||
users.users.root.packages = [
|
||||
pkgs.python3
|
||||
];
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
}
|
Reference in a new issue