mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 07:28:12 +09:00
feat
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
{ pkgs, ... }: {
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
services = {
|
services = {
|
||||||
|
|
||||||
blueman.enable = true; # Bluetooth Support
|
blueman.enable = true; # Bluetooth Support
|
||||||
@@ -17,7 +18,13 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
tailscale.enable = true;
|
tailscale = {
|
||||||
|
enable = true;
|
||||||
|
extraUpFlags = [
|
||||||
|
"--accept-dns=false"
|
||||||
|
"--accept-routes"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
pipewire = {
|
pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -63,8 +70,14 @@
|
|||||||
];
|
];
|
||||||
xdgOpenUsePortal = true;
|
xdgOpenUsePortal = true;
|
||||||
config = {
|
config = {
|
||||||
common.default = [ "wlr" "gtk" ];
|
common.default = [
|
||||||
niri.default = [ "wlr" "gtk" ];
|
"wlr"
|
||||||
|
"gtk"
|
||||||
|
];
|
||||||
|
niri.default = [
|
||||||
|
"wlr"
|
||||||
|
"gtk"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,8 +9,7 @@ in
|
|||||||
programs.niri.settings = {
|
programs.niri.settings = {
|
||||||
input.touchpad = {
|
input.touchpad = {
|
||||||
natural-scroll = true;
|
natural-scroll = true;
|
||||||
scroll-factor = 1.0;
|
scroll-factor = 4.0;
|
||||||
accel-speed = 0.3;
|
|
||||||
scroll-method = "two-finger";
|
scroll-method = "two-finger";
|
||||||
click-method = "clickfinger";
|
click-method = "clickfinger";
|
||||||
drag = true;
|
drag = true;
|
||||||
|
|||||||
+22
-1
@@ -1,10 +1,31 @@
|
|||||||
{ config, lib, pkgs, host, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
host,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
|
|
||||||
home.packages = [ pkgs.openssh ];
|
home.packages = [ pkgs.openssh ];
|
||||||
|
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
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 = ''
|
extraConfig = ''
|
||||||
Host *
|
Host *
|
||||||
AddKeysToAgent yes
|
AddKeysToAgent yes
|
||||||
|
|||||||
+17
-11
@@ -1,16 +1,23 @@
|
|||||||
{ pkgs }:
|
{ pkgs }:
|
||||||
let
|
let
|
||||||
py = pkgs.python312;
|
py = pkgs.python312;
|
||||||
pyEnv = py.withPackages (ps: with ps; [
|
pyEnv = py.withPackages (
|
||||||
ipykernel
|
ps: with ps; [
|
||||||
notebook
|
ipykernel
|
||||||
jupyterlab
|
notebook
|
||||||
numpy
|
jupyterlab
|
||||||
pandas
|
numpy
|
||||||
matplotlib
|
pandas
|
||||||
scipy
|
matplotlib
|
||||||
scikit-learn
|
scipy
|
||||||
]);
|
scikit-learn
|
||||||
|
|
||||||
|
pyathena
|
||||||
|
python-dotenv
|
||||||
|
plotly
|
||||||
|
seaborn
|
||||||
|
]
|
||||||
|
);
|
||||||
in
|
in
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
name = "jupyter-notebook";
|
name = "jupyter-notebook";
|
||||||
@@ -27,7 +34,6 @@ pkgs.mkShell {
|
|||||||
shellHook = ''
|
shellHook = ''
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# ---- show tool versions
|
|
||||||
if command -v python >/dev/null; then
|
if command -v python >/dev/null; then
|
||||||
echo "📓 jupyter shell → python $(python -V | awk '{print $2}')"
|
echo "📓 jupyter shell → python $(python -V | awk '{print $2}')"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user