From 50e49e8454b881a5bf2015aab5358b16f6f000be Mon Sep 17 00:00:00 2001 From: moons-14 Date: Thu, 25 Dec 2025 14:59:11 +0900 Subject: [PATCH] feat --- modules/core/services.nix | 23 ++++++++++++++++++----- modules/home/niri/default.nix | 3 +-- modules/home/ssh.nix | 23 ++++++++++++++++++++++- shells/jupyter.nix | 28 +++++++++++++++++----------- 4 files changed, 58 insertions(+), 19 deletions(-) diff --git a/modules/core/services.nix b/modules/core/services.nix index bdb6e77..9dd21e5 100644 --- a/modules/core/services.nix +++ b/modules/core/services.nix @@ -1,4 +1,5 @@ -{ pkgs, ... }: { +{ pkgs, ... }: +{ services = { blueman.enable = true; # Bluetooth Support @@ -17,7 +18,13 @@ }; }; - tailscale.enable = true; + tailscale = { + enable = true; + extraUpFlags = [ + "--accept-dns=false" + "--accept-routes" + ]; + }; pipewire = { enable = true; @@ -63,8 +70,14 @@ ]; xdgOpenUsePortal = true; config = { - common.default = [ "wlr" "gtk" ]; - niri.default = [ "wlr" "gtk" ]; + common.default = [ + "wlr" + "gtk" + ]; + niri.default = [ + "wlr" + "gtk" + ]; }; }; -} \ No newline at end of file +} diff --git a/modules/home/niri/default.nix b/modules/home/niri/default.nix index 4656508..111f9bc 100644 --- a/modules/home/niri/default.nix +++ b/modules/home/niri/default.nix @@ -9,8 +9,7 @@ in programs.niri.settings = { input.touchpad = { natural-scroll = true; - scroll-factor = 1.0; - accel-speed = 0.3; + scroll-factor = 4.0; scroll-method = "two-finger"; click-method = "clickfinger"; drag = true; diff --git a/modules/home/ssh.nix b/modules/home/ssh.nix index 06ed018..5cbaf32 100644 --- a/modules/home/ssh.nix +++ b/modules/home/ssh.nix @@ -1,10 +1,31 @@ -{ config, lib, pkgs, host, ... }: +{ + config, + lib, + pkgs, + host, + ... +}: { home.packages = [ pkgs.openssh ]; programs.ssh = { enable = true; + + matchBlocks = { + "grafana.moons14.com" = { + host = "grafana.moons14.com"; + identityFile = "~/.ssh/id_ed25519_sk_rk"; + identitiesOnly = true; + }; + + "dev-1.moons14.com" = { + host = "dev-1.moons14.com"; + identityFile = "~/.ssh/id_ed25519_sk_rk"; + identitiesOnly = true; + }; + }; + extraConfig = '' Host * AddKeysToAgent yes diff --git a/shells/jupyter.nix b/shells/jupyter.nix index 5d0b939..36138af 100644 --- a/shells/jupyter.nix +++ b/shells/jupyter.nix @@ -1,16 +1,23 @@ { pkgs }: let py = pkgs.python312; - pyEnv = py.withPackages (ps: with ps; [ - ipykernel - notebook - jupyterlab - numpy - pandas - matplotlib - scipy - scikit-learn - ]); + pyEnv = py.withPackages ( + ps: with ps; [ + ipykernel + notebook + jupyterlab + numpy + pandas + matplotlib + scipy + scikit-learn + + pyathena + python-dotenv + plotly + seaborn + ] + ); in pkgs.mkShell { name = "jupyter-notebook"; @@ -27,7 +34,6 @@ pkgs.mkShell { shellHook = '' set -e - # ---- show tool versions if command -v python >/dev/null; then echo "📓 jupyter shell → python $(python -V | awk '{print $2}')" fi