oizys/modules/virtualization/docker.nix

26 lines
547 B
Nix
Raw Normal View History

2024-03-19 08:56:51 -05:00
{
pkgs,
2024-03-19 07:31:31 -05:00
config,
2024-03-21 15:59:10 -05:00
mkOizysModule,
2024-03-19 07:31:31 -05:00
...
2024-03-21 15:59:10 -05:00
}:
2024-06-01 01:51:55 -05:00
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
2024-03-21 15:59:10 -05:00
mkOizysModule config "docker" {
virtualisation.docker.enable = true;
2024-06-01 01:51:55 -05:00
environment.systemPackages = (with pkgs; [ lazydocker]) ++ [ win10vm];
2024-03-21 15:59:10 -05:00
}