aboutsummaryrefslogtreecommitdiff
path: root/hosts/mercury
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/mercury')
-rw-r--r--hosts/mercury/hjem.nix1
-rw-r--r--hosts/mercury/nixos.nix56
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";