aboutsummaryrefslogtreecommitdiff
path: root/hosts/mercury/nixos.nix
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-04-29 15:20:57 -0500
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-04-29 15:20:57 -0500
commit9c9a49a855951662da62bcdec45f69ddc0099e5c (patch)
tree1f7852971693d9e49d16a77aff51b87d39940b1b /hosts/mercury/nixos.nix
parent21de12cd6e63adf463674942f1a8f9b658f47945 (diff)
changes
Diffstat (limited to 'hosts/mercury/nixos.nix')
-rw-r--r--hosts/mercury/nixos.nix56
1 files changed, 56 insertions, 0 deletions
diff --git a/hosts/mercury/nixos.nix b/hosts/mercury/nixos.nix
index 7db48b4..a47375a 100644
--- a/hosts/mercury/nixos.nix
+++ b/hosts/mercury/nixos.nix
@@ -1,6 +1,7 @@
{
lib,
inputs,
+ pkgs,
...
}: {
imports = [
@@ -23,6 +24,61 @@
};
programs.kdeconnect.enable = true;
+ security.soteria.enable = true;
+
+ virtualisation.podman = {
+ enable = true;
+ dockerCompat = true;
+ };
+ users.users.collin = {
+ extraGroups = ["podman"];
+ subGidRanges = [
+ {
+ count = 65536;
+ startGid = 100000;
+ }
+ ];
+ subUidRanges = [
+ {
+ count = 65536;
+ startUid = 100000;
+ }
+ ];
+ };
+
+ services.jupyter = {
+ enable = true;
+ ip = "127.0.0.1";
+ port = 8888;
+
+ user = "collin"; # to access my files
+
+ package = pkgs.python313Packages.jupyter;
+ command = "jupyter lab --ServerApp.token='' --ServerApp.password=''";
+ password = "";
+
+ notebookDir = "~/brain/notes/schoolyear2025/physics";
+
+ kernels = {
+ python3 = let
+ python = pkgs.python313.withPackages (ps:
+ with ps; [
+ numpy
+ pandas
+ matplotlib
+ sympy
+ ipywidgets
+ ipydatagrid
+ ipykernel
+ ]);
+ in {
+ language = "python";
+ displayName = "Python (Physics)";
+ argv = ["${python}/bin/python" "-m" "ipykernel_launcher" "-f" "{connection_file}"];
+ };
+ };
+ };
+
fileSystems."/home/collin/ganymede" = {
device = "collin@ganymede:/media";
fsType = "fuse.sshfs";