Add nixos vm config

This commit is contained in:
Cyryl Płotnicki 2019-06-30 13:59:03 +01:00
parent 49b1b39eaa
commit a73e4ab2a9
5 changed files with 25 additions and 13 deletions

View file

@ -26,5 +26,9 @@
enableHardening = false; #needed for 3D acceleration
};
imports = [ ../common.nix ];
}
imports = [
/etc/nixos/hardware-configuration.nix
../boot.nix
../common.nix
];
}

View file

@ -15,5 +15,9 @@
};
};
time.timeZone = "Europe/Warsaw";
imports = [ ../common.nix ];
imports = [
/etc/nixos/hardware-configuration.nix
../boot.nix
../common.nix
];
}

13
nixos/boxes/vm.nix Normal file
View file

@ -0,0 +1,13 @@
{ config, pkgs, lib, ... }:
{
time.timeZone = "Europe/London";
services.xserver.desktopManager.plasma5.enable = lib.mkForce false;
services.xserver.displayManager.sddm.enable = lib.mkForce false;
imports = [
<nixpkgs/nixos/modules/installer/virtualbox-demo.nix>
../common.nix
];
}

View file

@ -7,12 +7,10 @@ in
{
imports =
[
/etc/nixos/hardware-configuration.nix
./vscode.nix
./syncthing.nix
./gsconnect.nix
./gfx.nix
./boot.nix
];
nixpkgs.config = {
@ -51,7 +49,6 @@ in
yubico-piv-tool yubikey-personalization yubikey-personalization-gui yubikey-manager-qt
mono calcurse unstable.pypi2nix etesync-dav calibre fbreader unstable.hopper file python37Packages.binwalk-full
];
uid = 1000;
shell = pkgs.zsh;
};

View file

@ -127,12 +127,6 @@ in
sha256 = "1lccsyhj3mgbacw76hikgml85hi82zipaza1194nqnj1inhci80b";
}
{
publisher = "PeterJausovec";
name = "vscode-docker";
version = "0.6.1";
sha256 = "0clxy66qi5c3k5di5xsjm3vjib525xq89z1q2h3a5x5qwvbvd0mj";
}
{
publisher = "ritwickdey";
name = "LiveServer";
version = "5.6.1";
@ -159,4 +153,4 @@ in
];})
];
};
}
}