mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 03:08:11 +09:00
chore
This commit is contained in:
@@ -74,8 +74,11 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
devShells = {
|
devShells = {
|
||||||
x86_64-linux = {
|
x86_64-linux =
|
||||||
next-web = import ./shells/next-web.nix { pkgs = import nixpkgs { system = "x86_64-linux"; }; };
|
let
|
||||||
|
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||||
|
in {
|
||||||
|
next-web = import ./shells/next-web.nix { inherit pkgs; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -7,5 +7,6 @@
|
|||||||
./ssh.nix
|
./ssh.nix
|
||||||
./vim
|
./vim
|
||||||
./zsh.nix
|
./zsh.nix
|
||||||
|
./environment.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
# use project directory: `echo 'use flake ~/dotfiles#next-web' > .envrc`
|
||||||
|
programs.direnv = {
|
||||||
|
enable = true;
|
||||||
|
nix-direnv.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
font.size = 11;
|
font.size = 11;
|
||||||
popToRootOnClose = false;
|
popToRootOnClose = false;
|
||||||
rootSearch.searchFiles = false;
|
rootSearch.searchFiles = false;
|
||||||
theme.name = "vicinae-dark";
|
theme.name = "Dracula";
|
||||||
window = {
|
window = {
|
||||||
csd = true;
|
csd = true;
|
||||||
opacity = 0.95;
|
opacity = 0.95;
|
||||||
|
|||||||
@@ -109,4 +109,10 @@ in {
|
|||||||
web = mkProfile [ layers.common layers.web ] { };
|
web = mkProfile [ layers.common layers.web ] { };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xdg.configFile."Code/User/locale.json".text = ''
|
||||||
|
{
|
||||||
|
"locale": "ja"
|
||||||
|
}
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,10 @@
|
|||||||
setopt hist_verify
|
setopt hist_verify
|
||||||
setopt inc_append_history_time
|
setopt inc_append_history_time
|
||||||
|
|
||||||
|
unsetopt SHARE_HISTORY
|
||||||
|
setopt APPEND_HISTORY
|
||||||
|
setopt INC_APPEND_HISTORY_TIME
|
||||||
|
|
||||||
# ---- from gist: aliases ----
|
# ---- from gist: aliases ----
|
||||||
alias docker-compose="docker compose"
|
alias docker-compose="docker compose"
|
||||||
alias clearsign='export GPG_TTY=$(tty) && openssl rand -hex 16 | gpg --clearsign'
|
alias clearsign='export GPG_TTY=$(tty) && openssl rand -hex 16 | gpg --clearsign'
|
||||||
|
|||||||
+33
-5
@@ -1,13 +1,41 @@
|
|||||||
{ pkgs }:
|
{ pkgs }:
|
||||||
{
|
let
|
||||||
|
node = pkgs.nodejs_22;
|
||||||
|
in
|
||||||
|
pkgs.mkShell {
|
||||||
|
name = "next-web";
|
||||||
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
nodejs_22
|
node
|
||||||
pnpm
|
pnpm
|
||||||
corepack
|
zsh
|
||||||
git ripgrep fd fzf
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
NODE_ENV = "development";
|
||||||
|
|
||||||
|
COREPACK_HOME = "$PWD/.corepack";
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
echo "Web dev sell ready: node $(node -v)"
|
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
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user