add global prompt for claude-code
This commit is contained in:
parent
1b5bff2a07
commit
9b7af6f568
4 changed files with 17 additions and 42 deletions
|
|
@ -1,4 +1,6 @@
|
|||
{ config, pkgs, ... }: {
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./containers.nix
|
||||
|
|
@ -6,9 +8,7 @@
|
|||
../../../modules/tailscale.nix
|
||||
../../../modules/podman.nix
|
||||
../../../modules/borg/client.nix
|
||||
../../../modules/login-display.nix
|
||||
../../../modules/media-server.nix
|
||||
../../../modules/samba.nix
|
||||
];
|
||||
|
||||
# GRUB bootloader with ZFS support
|
||||
|
|
@ -116,20 +116,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
# Login display with SMART disk health status
|
||||
services.login-display = {
|
||||
enable = true;
|
||||
showSystemInfo = true;
|
||||
showSmartStatus = true;
|
||||
smartDrives = {
|
||||
"/dev/disk/by-id/ata-ZHITAI_SC001_XT_1000GB_ZTB401TAB244431J4R" = "ZFS_Mirror_1";
|
||||
"/dev/disk/by-id/ata-ZHITAI_SC001_XT_1000GB_ZTB401TAB244431KEG" = "ZFS_Mirror_2";
|
||||
};
|
||||
showDiskUsage = true;
|
||||
diskUsagePaths = [ "/" "/home/" ];
|
||||
showBorgStatus = true;
|
||||
};
|
||||
|
||||
services.tailscale-custom = {
|
||||
exitNode = true;
|
||||
subnetRoutes = [ "10.1.1.0/24" ];
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
../system-default.nix
|
||||
../../../modules/podman.nix
|
||||
../../../modules/tailscale.nix
|
||||
../../../modules/login-display.nix
|
||||
../../../modules/borg/client.nix
|
||||
];
|
||||
|
||||
|
|
@ -183,18 +182,6 @@
|
|||
|
||||
services.tailscale-custom.exitNode = true;
|
||||
|
||||
# Login display with SMART disk health status
|
||||
services.login-display = {
|
||||
enable = true;
|
||||
showSystemInfo = true;
|
||||
showSmartStatus = true;
|
||||
smartDrives = {
|
||||
"/dev/nvme0n1" = "System_SSD";
|
||||
};
|
||||
showDiskUsage = true;
|
||||
showBorgStatus = true;
|
||||
};
|
||||
|
||||
services.borg-client-custom = {
|
||||
enable = true;
|
||||
repositoryUrl = "ssh://borg-box/./thinkpad";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
{ config, pkgs, ... }: {
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./containers.nix
|
||||
|
|
@ -7,7 +9,6 @@
|
|||
../../../modules/tailscale.nix
|
||||
../../../modules/podman.nix
|
||||
../../../modules/traefik.nix
|
||||
../../../modules/login-display.nix
|
||||
];
|
||||
|
||||
# GRUB bootloader with UEFI support
|
||||
|
|
@ -69,14 +70,6 @@
|
|||
];
|
||||
};
|
||||
|
||||
services.login-display = {
|
||||
enable = true;
|
||||
showSystemInfo = true;
|
||||
showSmartStatus = false;
|
||||
showDiskUsage = true;
|
||||
showBorgStatus = false;
|
||||
};
|
||||
|
||||
services.tailscale-custom.exitNode = true;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -151,7 +151,10 @@ in
|
|||
{
|
||||
config = {
|
||||
# Install Claude Code package
|
||||
home.packages = [ claudePackage ];
|
||||
home.packages = [
|
||||
claudePackage
|
||||
pkgs.poppler-utils
|
||||
];
|
||||
|
||||
# Create global settings file (with permissions included)
|
||||
home.file.".claude/settings.json" = {
|
||||
|
|
@ -160,7 +163,13 @@ in
|
|||
|
||||
# Create global memory file
|
||||
home.file.".claude/CLAUDE.md" = {
|
||||
text = "";
|
||||
text = ''
|
||||
## Environment
|
||||
- System is managed with Nix (flakes) for global development runtime
|
||||
- Projects may use flake + direnv for project-specific runtimes
|
||||
- Common development tools (git, gh, ripgrep, jq, fzf, etc.) are globally available via nix
|
||||
- PDF reading is supported (poppler-utils installed)
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue