🔨 chore: cleanup the nixos config, add auto-copying of /iot

Signed-off-by: dyn <oss+dyn@xtrm.me>
This commit is contained in:
dyn
2025-12-17 14:18:56 +01:00
parent 8c9ad77686
commit edc99ce6dc

View File

@ -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);
};
};