🚧 wip: fixup the vm, add a wip vagrantfile just in case

Signed-off-by: dyn <oss+dyn@xtrm.me>
This commit is contained in:
dyn
2025-12-17 01:27:04 +01:00
parent ab440e31c0
commit 78051f16d8
5 changed files with 60 additions and 44 deletions

View File

@ -20,20 +20,10 @@
"flakes"
];
networking.hosts = {
"192.168.56.110" = [
"app1.com"
"app2.com"
"app3.com"
];
};
# Since `fileSystems` is ignored by nixos-generators, we need to be creative
systemd.services.mount-iot = {
description = "Mount the IOT shared folder";
# fstab entry:
# host0 /wherever 9p trans=virtio,version=9p2000.L 0 0
script = ''
mkdir -p /iot
/run/wrappers/bin/mount -t 9p -o trans=virtio,version=9p2000.L host0 /iot
@ -48,26 +38,19 @@
};
};
users.users.root = {
password = "toor";
shell = pkgs.zsh;
extraGroups = [
"wheel"
"libvirtd"
];
users.users = {
root.password = "toor";
user = {
password = "iot";
isNormalUser = true;
extraGroups = [ "wheel" "docker" "libvirt" ];
};
};
users.users.adjoly = {
password = "test";
shell = pkgs.fish;
extraGroups = [
"wheel"
"libvirtd"
];
isNormalUser = true;
};
programs.fish.enable = true;
services = {
k3s = {
enable = true;
};
getty.autologinUser = "root";
openssh = {
enable = true;
@ -85,7 +68,13 @@
variant = "us";
};
};
displayManager.gdm.enable = true;
displayManager = {
gdm.enable = true;
autoLogin = {
enable = true;
user = "test";
};
};
desktopManager.gnome.enable = true;
libinput.enable = true;
};
@ -93,7 +82,7 @@
enable = true;
enable32Bit = true;
};
virtualisation.virtualbox.host.enable = true;
virtualisation.docker.enable = true;
boot.kernelParams = [ "kvm.enable_virt_at_load=0" ];
programs = {
@ -110,12 +99,15 @@
systemPackages = with pkgs; [
librewolf
bindfs
vagrant
git
zip
neovim
eza
bat
vagrant
k3d
kubectl
];
};