From edc99ce6dcac9cc75f0eebbb7246b8a5c241b76e Mon Sep 17 00:00:00 2001 From: dyn Date: Wed, 17 Dec 2025 14:18:56 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20chore:=20cleanup=20the=20nixos?= =?UTF-8?q?=20config,=20add=20auto-copying=20of=20/iot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: dyn --- vm/configuration.nix | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) 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); }; };