From 772dee8cd9a7161a43463249381dc5f68348f091 Mon Sep 17 00:00:00 2001 From: coon Date: Tue, 30 Sep 2025 17:57:11 +0000 Subject: [PATCH] add configuration.nix with python env --- configuration.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 configuration.nix diff --git a/configuration.nix b/configuration.nix new file mode 100644 index 0000000..f24f172 --- /dev/null +++ b/configuration.nix @@ -0,0 +1,27 @@ +{ config, modulesPath, pkgs, lib, ... }: +{ + imports = [ (modulesPath + "/virtualisation/proxmox-lxc.nix") ]; + nix.settings = { sandbox = false; }; + proxmoxLXC = { + manageNetwork = false; + privileged = true; + }; + security.pam.services.sshd.allowNullPassword = true; + services.openssh = { + enable = true; + openFirewall = true; + settings = { + PermitRootLogin = "yes"; + PasswordAuthentication = false; + }; + }; + + environment.systemPackages = with pkgs; [ + vim + git + (python3.withPackages (p: with p; [paho-mqtt mido])) + ]; + + + system.stateVersion = "25.05"; +}