mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 06:00:45 -06:00
put win10vm in proper module
This commit is contained in:
parent
e1171c8f73
commit
9e3eefee6a
2 changed files with 18 additions and 17 deletions
|
@ -4,22 +4,7 @@
|
|||
mkOizysModule,
|
||||
...
|
||||
}:
|
||||
let
|
||||
# TODO: polish this up
|
||||
win10vm = pkgs.stdenvNoCC.mkDerivation {
|
||||
name = "win10vm";
|
||||
unpackPhase = "true";
|
||||
buildPhase = "mkdir $out";
|
||||
version = "unstable";
|
||||
desktopItem = pkgs.makeDesktopItem {
|
||||
name = "win10vm";
|
||||
exec = "VBoxManage startvm win10";
|
||||
# icon = ""; # TODO: add windows icon
|
||||
desktopName = "Windows 10 VM";
|
||||
};
|
||||
};
|
||||
in
|
||||
mkOizysModule config "docker" {
|
||||
virtualisation.docker.enable = true;
|
||||
environment.systemPackages = (with pkgs; [ lazydocker]) ++ [ win10vm];
|
||||
environment.systemPackages = with pkgs; [ lazydocker];
|
||||
}
|
||||
|
|
|
@ -1,7 +1,23 @@
|
|||
{ config, mkOizysModule, ... }:
|
||||
{ config, mkOizysModule, pkgs,... }:
|
||||
let
|
||||
# TODO: polish this up
|
||||
win10vm = pkgs.stdenvNoCC.mkDerivation {
|
||||
name = "win10vm";
|
||||
unpackPhase = "true";
|
||||
buildPhase = "mkdir $out";
|
||||
version = "unstable";
|
||||
desktopItem = pkgs.makeDesktopItem {
|
||||
name = "win10vm";
|
||||
exec = "VBoxManage startvm win10";
|
||||
# icon = ""; # TODO: add windows icon
|
||||
desktopName = "Windows 10 VM";
|
||||
};
|
||||
};
|
||||
in
|
||||
mkOizysModule config "vbox" {
|
||||
virtualisation.virtualbox = {
|
||||
host.enable = true;
|
||||
};
|
||||
users.extraGroups.vboxusers.members = [ "daylin" ];
|
||||
environment.systemPackages = [ win10vm ];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue