diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-04-29 15:20:57 -0500 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-04-29 15:20:57 -0500 |
| commit | 9c9a49a855951662da62bcdec45f69ddc0099e5c (patch) | |
| tree | 1f7852971693d9e49d16a77aff51b87d39940b1b /hosts/mercury | |
| parent | 21de12cd6e63adf463674942f1a8f9b658f47945 (diff) | |
changes
Diffstat (limited to 'hosts/mercury')
| -rw-r--r-- | hosts/mercury/hjem.nix | 1 | ||||
| -rw-r--r-- | hosts/mercury/nixos.nix | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/hosts/mercury/hjem.nix b/hosts/mercury/hjem.nix index 7084251..6ecbb8e 100644 --- a/hosts/mercury/hjem.nix +++ b/hosts/mercury/hjem.nix @@ -7,6 +7,7 @@ prismlauncher mpv + irssi opencode 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"; |
