This commit is contained in:
2025-11-07 16:12:32 +09:00
parent 5d9d1b03d0
commit 93d8bcc54b
7 changed files with 65 additions and 16 deletions
+6 -3
View File
@@ -74,9 +74,12 @@
};
devShells = {
x86_64-linux = {
next-web = import ./shells/next-web.nix { pkgs = import nixpkgs { system = "x86_64-linux"; }; };
};
x86_64-linux =
let
pkgs = import nixpkgs { system = "x86_64-linux"; };
in {
next-web = import ./shells/next-web.nix { inherit pkgs; };
};
};
};
}
+1
View File
@@ -7,5 +7,6 @@
./ssh.nix
./vim
./zsh.nix
./environment.nix
];
}
+7
View File
@@ -0,0 +1,7 @@
{
# use project directory: `echo 'use flake ~/dotfiles#next-web' > .envrc`
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
}
+2 -2
View File
@@ -1,4 +1,4 @@
{ inputs, ... }:
{ inputs, ... }:
{
imports = [
inputs.vicinae.homeManagerModules.default
@@ -13,7 +13,7 @@
font.size = 11;
popToRootOnClose = false;
rootSearch.searchFiles = false;
theme.name = "vicinae-dark";
theme.name = "Dracula";
window = {
csd = true;
opacity = 0.95;
+6
View File
@@ -109,4 +109,10 @@ in {
web = mkProfile [ layers.common layers.web ] { };
};
};
xdg.configFile."Code/User/locale.json".text = ''
{
"locale": "ja"
}
'';
}
+4
View File
@@ -35,6 +35,10 @@
setopt hist_verify
setopt inc_append_history_time
unsetopt SHARE_HISTORY
setopt APPEND_HISTORY
setopt INC_APPEND_HISTORY_TIME
# ---- from gist: aliases ----
alias docker-compose="docker compose"
alias clearsign='export GPG_TTY=$(tty) && openssl rand -hex 16 | gpg --clearsign'
+38 -10
View File
@@ -1,13 +1,41 @@
{ pkgs }:
{
packages = with pkgs; [
nodejs_22
pnpm
corepack
git ripgrep fd fzf
];
let
node = pkgs.nodejs_22;
in
pkgs.mkShell {
name = "next-web";
shellHook = ''
echo "Web dev sell ready: node $(node -v)"
'';
packages = with pkgs; [
node
pnpm
zsh
];
NODE_ENV = "development";
COREPACK_HOME = "$PWD/.corepack";
shellHook = ''
set -e
# ---- show tool versions
if command -v node >/dev/null; then
echo "🌱 next-web shell → node $(node -v)"
fi
if command -v pnpm >/dev/null; then
echo " pnpm $(pnpm --version)"
fi
if command -v corepack >/dev/null 2>&1; then
echo " corepack available"
if [ -f package.json ] && command -v jq >/dev/null 2>&1 && jq -e '.packageManager' package.json >/dev/null; then
COREPACK_ENABLE_DOWNLOADS=1 corepack prepare --activate || true
fi
fi
# ---- switch to zsh (interactive only). Don't break `nix develop -c ...`
if [ -z "''${ZSH_VERSION:-}" ] && [[ $- == *i* ]] && [ -t 1 ] && [ -z "''${NIX_SHELL_ZSH_ACTIVATED:-}" ]; then
export NIX_SHELL_ZSH_ACTIVATED=1
exec ${pkgs.zsh}/bin/zsh -i
fi
'';
}