diff --git a/vm/configuration.nix b/vm/configuration.nix index 3adeb79..ffeb5a6 100644 --- a/vm/configuration.nix +++ b/vm/configuration.nix @@ -26,6 +26,15 @@ script = '' mkdir -p /iot /run/wrappers/bin/mount -t 9p -o trans=virtio,version=9p2000.L host0 /iot + + rm -rf /home/user/iot /root/iot + + mkdir /home/user/iot -p + cp -r /iot/p* /iot/bonus /home/user/iot/ + chown -R user:user /home/user/iot + + mkdir /root/iot -p + cp -r /iot/p* /iot/bonus /rot/iot/ ''; wantedBy = [ "multi-user.target" ]; @@ -47,19 +56,8 @@ }; services = { - k3s = { - enable = true; - }; + k3s.enable = true; getty.autologinUser = "root"; - openssh = { - enable = true; - ports = [ 22 ]; - settings = { - PermitRootLogin = "yes"; - PasswordAuthentication = true; - AllowUsers = null; - }; - }; xserver = { enable = true; xkb = { @@ -81,15 +79,19 @@ enable = true; enable32Bit = true; }; - virtualisation.docker.enable = true; + + virtualisation = { + virtualbox.host.enable = true; + docker.enable = true; + }; boot.kernelParams = [ "kvm.enable_virt_at_load=0" ]; programs = { zsh = { - autosuggestions.enable = true; - syntaxHighlighting.enable = true; enable = true; enableBashCompletion = true; + autosuggestions.enable = true; + syntaxHighlighting.enable = true; shellAliases = (import ./aliases.nix); }; };