forked from Fediversity/Fediversity
Clean up VM options
This commit is contained in:
parent
b63f9873fa
commit
9d27f2d98e
3 changed files with 39 additions and 36 deletions
|
@ -175,11 +175,6 @@ pkgs.nixosTest {
|
||||||
../vm/interactive-vm.nix
|
../vm/interactive-vm.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
virtualisation = {
|
|
||||||
memorySize = lib.mkVMOverride 8192;
|
|
||||||
cores = 8;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
python3
|
python3
|
||||||
firefox-unwrapped
|
firefox-unwrapped
|
||||||
|
|
|
@ -28,7 +28,6 @@ in
|
||||||
inherit value;
|
inherit value;
|
||||||
}) (filterAttrs (_: { website, ... }: website) cfg.ensureBuckets);
|
}) (filterAttrs (_: { website, ... }: website) cfg.ensureBuckets);
|
||||||
|
|
||||||
virtualisation.diskSize = 2048;
|
|
||||||
virtualisation.forwardPorts = [
|
virtualisation.forwardPorts = [
|
||||||
{
|
{
|
||||||
from = "host";
|
from = "host";
|
||||||
|
|
|
@ -1,9 +1,19 @@
|
||||||
# customize nixos-rebuild build-vm to be a bit more convenient
|
{ pkgs, lib, ... }:
|
||||||
{ pkgs, ... }:
|
|
||||||
|
let
|
||||||
|
inherit (lib) mkForce;
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
# let us log in
|
users = {
|
||||||
users.mutableUsers = false;
|
mutableUsers = false;
|
||||||
users.users.root.hashedPassword = "";
|
users.root = {
|
||||||
|
hashedPassword = "";
|
||||||
|
hashedPasswordFile = mkForce null;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -13,16 +23,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# automatically log in
|
|
||||||
services.getty.autologinUser = "root";
|
services.getty.autologinUser = "root";
|
||||||
services.getty.helpLine = ''
|
|
||||||
Type `C-a c` to access the qemu console
|
|
||||||
Type `C-a x` to quit
|
|
||||||
'';
|
|
||||||
# access to convenient things
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
w3m
|
|
||||||
python3
|
python3
|
||||||
|
w3m
|
||||||
xterm # for `resize`
|
xterm # for `resize`
|
||||||
];
|
];
|
||||||
environment.loginShellInit = ''
|
environment.loginShellInit = ''
|
||||||
|
@ -32,9 +37,12 @@
|
||||||
extra-experimental-features = nix-command flakes
|
extra-experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
|
|
||||||
virtualisation.memorySize = 2048;
|
virtualisation = {
|
||||||
|
memorySize = 8192;
|
||||||
|
diskSize = 2048;
|
||||||
|
cores = 8;
|
||||||
|
|
||||||
virtualisation.forwardPorts = [
|
forwardPorts = [
|
||||||
{
|
{
|
||||||
from = "host";
|
from = "host";
|
||||||
host.port = 22222;
|
host.port = 22222;
|
||||||
|
@ -51,4 +59,5 @@
|
||||||
guest.port = 443;
|
guest.port = 443;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue