mirror of
https://codeberg.org/27/inception-of-things.git
synced 2026-01-01 06:06:42 +01:00
🚧 wip: fixup the vm, add a wip vagrantfile just in case
Signed-off-by: dyn <oss+dyn@xtrm.me>
This commit is contained in:
@ -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
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user