mirror of
https://codeberg.org/27/inception-of-things.git
synced 2025-12-31 21:56:41 +01:00
🔨 chore: cleanup the nixos config, add auto-copying of /iot
Signed-off-by: dyn <oss+dyn@xtrm.me>
This commit is contained in:
@ -26,6 +26,15 @@
|
|||||||
script = ''
|
script = ''
|
||||||
mkdir -p /iot
|
mkdir -p /iot
|
||||||
/run/wrappers/bin/mount -t 9p -o trans=virtio,version=9p2000.L host0 /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" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
@ -47,19 +56,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
k3s = {
|
k3s.enable = true;
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
getty.autologinUser = "root";
|
getty.autologinUser = "root";
|
||||||
openssh = {
|
|
||||||
enable = true;
|
|
||||||
ports = [ 22 ];
|
|
||||||
settings = {
|
|
||||||
PermitRootLogin = "yes";
|
|
||||||
PasswordAuthentication = true;
|
|
||||||
AllowUsers = null;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
xserver = {
|
xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
xkb = {
|
xkb = {
|
||||||
@ -81,15 +79,19 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
enable32Bit = true;
|
enable32Bit = true;
|
||||||
};
|
};
|
||||||
virtualisation.docker.enable = true;
|
|
||||||
|
virtualisation = {
|
||||||
|
virtualbox.host.enable = true;
|
||||||
|
docker.enable = true;
|
||||||
|
};
|
||||||
boot.kernelParams = [ "kvm.enable_virt_at_load=0" ];
|
boot.kernelParams = [ "kvm.enable_virt_at_load=0" ];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
zsh = {
|
zsh = {
|
||||||
autosuggestions.enable = true;
|
|
||||||
syntaxHighlighting.enable = true;
|
|
||||||
enable = true;
|
enable = true;
|
||||||
enableBashCompletion = true;
|
enableBashCompletion = true;
|
||||||
|
autosuggestions.enable = true;
|
||||||
|
syntaxHighlighting.enable = true;
|
||||||
shellAliases = (import ./aliases.nix);
|
shellAliases = (import ./aliases.nix);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user