From 65232cfed3a18bb5be5d67c311dae947d0dcc685 Mon Sep 17 00:00:00 2001 From: David Crompton Date: Fri, 21 Feb 2025 19:34:53 -0500 Subject: [PATCH] Adding X11 forwarding, new packages for the default python, and a swapfile --- machines/kcnhub/configuration.nix | 4 ++++ machines/kcnhub/hardware-configuration.nix | 5 ++++- machines/kcnhub/packages.nix | 1 + machines/kcnhub/packages/ngilab.nix | 5 +++++ machines/kcnhub/packages/python.nix | 24 ++++++++++++++++++++++ machines/kcnhub/users/afauroux.nix | 2 +- 6 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 machines/kcnhub/packages/ngilab.nix diff --git a/machines/kcnhub/configuration.nix b/machines/kcnhub/configuration.nix index 9d630e6..226c448 100644 --- a/machines/kcnhub/configuration.nix +++ b/machines/kcnhub/configuration.nix @@ -39,6 +39,10 @@ # Enable the X11 windowing system. services.xserver.enable = true; + # Enable the X11 forwarding over ssh + programs.ssh.forwardX11 = true; + programs.ssh.setXAuthLocation = true; + # Enable KDE Plasma services.xserver.displayManager.sddm.enable = true; services.xserver.desktopManager.plasma5.enable = true; diff --git a/machines/kcnhub/hardware-configuration.nix b/machines/kcnhub/hardware-configuration.nix index 199d182..4eae8f6 100644 --- a/machines/kcnhub/hardware-configuration.nix +++ b/machines/kcnhub/hardware-configuration.nix @@ -43,7 +43,10 @@ options = [ "defaults" "pquota" ]; }; - swapDevices = [ ]; + swapDevices = [ { + device = "/swapfile"; + size = 125*1024; + } ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's diff --git a/machines/kcnhub/packages.nix b/machines/kcnhub/packages.nix index 9b3ed53..f1e0370 100644 --- a/machines/kcnhub/packages.nix +++ b/machines/kcnhub/packages.nix @@ -1,5 +1,6 @@ { ... }: { imports = [ + ./packages/ngilab.nix ./packages/office.nix ./packages/terminal.nix ./packages/python.nix diff --git a/machines/kcnhub/packages/ngilab.nix b/machines/kcnhub/packages/ngilab.nix new file mode 100644 index 0000000..3da40e3 --- /dev/null +++ b/machines/kcnhub/packages/ngilab.nix @@ -0,0 +1,5 @@ +{ pkgs, ...}: { + environment.systemPackages = with pkgs; [ + embree + ]; +} diff --git a/machines/kcnhub/packages/python.nix b/machines/kcnhub/packages/python.nix index d623b4f..76a8bab 100644 --- a/machines/kcnhub/packages/python.nix +++ b/machines/kcnhub/packages/python.nix @@ -46,6 +46,30 @@ # fetching neuromorphic data: tonic + # Librairies to deal with mesh + #pymeshlab + trimesh + # dependencies trimesh + lxml # Parse XML documents. + networkx # Pure Python graph library + shapely # Bindings to GEOS for 2D spatial stuff + rtree # Query ND rectangles with a spatial tree + httpx # Do network queries in trimesh.exchange.load_remote + sympy # Evaluate symbolic algebra + xxhash # Quickly hash arrays, used for our cache checking, easy, + charset-normalizer # When we fail to decode text as UTF-8 + colorlog # Printing logs with colors., easy, + pillow # Reading raster images for textures and render polygons into raster images., easy, + jsonschema # Validating our exports for formats like GLTF., easy, + pycollada # Parse dae files., easy, + meshio # Load additional mesh formats. + scikit-image # Used in voxel ops + #mapbox #earcut, Triangulate 2D polygons + psutil # Get current memory usage + #ruff # A static code analyzer and formatter + #manifold3d # A binding for the Manifold mesh boolean engine + #openctm # A binding for OpenCTM loaders enabling .ctm loading + # Machine learning toolkits: tensorflow tensorboard diff --git a/machines/kcnhub/users/afauroux.nix b/machines/kcnhub/users/afauroux.nix index cde58e1..f4acb1c 100644 --- a/machines/kcnhub/users/afauroux.nix +++ b/machines/kcnhub/users/afauroux.nix @@ -5,7 +5,7 @@ homeSize = "50g"; homeProjectId = 120; packages = with pkgs; [ - + vscode ]; }; }