add configuration.nix with python env
This commit is contained in:
parent
b7024c124b
commit
772dee8cd9
1 changed files with 27 additions and 0 deletions
27
configuration.nix
Normal file
27
configuration.nix
Normal file
|
@ -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";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue