diff options
Diffstat (limited to 'hosts/mercury/nixos.nix')
| -rw-r--r-- | hosts/mercury/nixos.nix | 56 |
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"; |
