This commit is contained in:
암냥 2026-07-05 13:31:18 +09:00
commit e6b0f38caa
No known key found for this signature in database
32 changed files with 44 additions and 88 deletions

View file

@ -0,0 +1,19 @@
{ pkgs, inputs, ... }:
let
system = pkgs.stdenv.hostPlatform.system;
pkgsPacketTracer8 = import inputs.nixpkgs-2511 {
inherit system;
config = {
allowUnfree = true;
permittedInsecurePackages = [
"ciscoPacketTracer8-8.2.2"
];
};
};
in
{
home.packages = [
pkgs.cisco-packet-tracer_9
pkgsPacketTracer8.ciscoPacketTracer8
];
}

View file

@ -0,0 +1,49 @@
{pkgs, ...}: {
programs.ghostty = {
enable = true;
package = if pkgs.stdenv.isDarwin then pkgs.ghostty-bin else pkgs.ghostty;
enableFishIntegration = true;
settings = {
background = "#fcf8f9";
foreground = "#191017";
cursor-color = "#301d23";
selection-background = "#f4ecee";
selection-foreground = "#191017";
palette = [
"0=#5c5f77"
"1=#d20f39"
"2=#40a02b"
"3=#df8e1d"
"4=#1e66f5"
"5=#ea76cb"
"6=#179299"
"7=#acb0be"
"8=#6c6f85"
"9=#d20f39"
"10=#40a02b"
"11=#df8e1d"
"12=#1e66f5"
"13=#ea76cb"
"14=#179299"
"15=#bcc0cc"
];
window-colorspace = "srgb";
window-theme = "ghostty";
window-subtitle = "working-directory";
font-family = "JetBrainsMono NFM Regular";
font-family-bold = "JetBrainsMono NFM Bold";
font-family-italic = "JetBrainsMono NFM Bold Italic";
font-family-bold-italic = "JetBrainsMono NFM Italic";
window-width = 100;
window-height = 30;
auto-update = "off";
};
};
}

View file

@ -0,0 +1,26 @@
{ pkgs, ... }:
{
programs.git = {
enable = true;
settings = {
user = {
name = "imnyang";
email = "imnyang@pm.me";
signingkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOHP3Z+AYrRh9f8TYyqChKfeyNm3lOe0F75AwRHTTaxD";
};
gpg = {
format = "ssh";
"ssh".program = "${pkgs._1password-gui}/bin/op-ssh-sign";
};
commit.gpgsign = true;
init.defaultBranch = "main";
pull.rebase = false;
includeIf."gitdir:~/workspaces/git/adofai.gg/" = {
path = builtins.toFile "gitconfig-adofaigg" ''
[user]
email = imnyang@adofai.gg
'';
};
};
};
}

View file

@ -0,0 +1,23 @@
{
pkgs,
config,
lib,
...
}:
{
programs.neovim = {
enable = true;
withRuby = true;
withPython3 = true;
viAlias = true;
vimAlias = true;
};
home.activation.nvimConfigRepo = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
target="${config.xdg.configHome}/nvim"
rm -rf "$target"
${pkgs.git}/bin/git clone https://git.pari.ng/imnyang/nvim-config.git "$target"
'';
}

View file

@ -0,0 +1,51 @@
{ pkgs, ... }:
let
styleScript = pkgs.writeText "inject.js" ''
;(() => {
const el = document.createElement('style')
el.innerText = `
.part.editor>.content .editor-group-container .editor-group-watermark .letterpress {
background-image: url("https://file.mizuki.guru/.tesiotjosaeifjpoeawsjfnpoiawsejfopieawjfopjakweopfjawieof/IN_VISUAL_STUDIO_CODE.webp") !important;
opacity: 1.0;
overflow: visible;
filter: none;
aspect-ratio: 16 / 9 !important;
max-height: fit-content !important;
}
`
document.head.appendChild(el)
})();
'';
in
{
programs.vscode = {
enable = true;
mutableExtensionsDir = true;
userSettings = {
"extensions.autoUpdate" = true;
};
package = (pkgs.vscode.override { isInsiders = true; }).overrideAttrs (oldAttrs: {
version = "latest";
src = builtins.fetchTarball {
url = "https://code.visualstudio.com/sha/download?build=insider&os=linux-x64";
sha256 = "1vzf897inlzxfwmnaykkj3gqg18wbh9zhv7lnh3if6agixv0v91b";
};
buildInputs = oldAttrs.buildInputs ++ [
pkgs.krb5
pkgs.libsoup_3
pkgs.webkitgtk_4_1
pkgs.libxtst
pkgs.libjpeg8
pkgs.pipewire
pkgs.libei
];
postFixup = ''
cat ${styleScript} >> $out/lib/vscode/resources/app/out/vs/code/electron-browser/workbench/workbench.js
''
+ (oldAttrs.postFixup or "");
});
};
}

View file

@ -0,0 +1,75 @@
{ pkgs, ... }:
{
programs.zed-editor = {
enable = true;
package = if pkgs.stdenv.isDarwin then null else pkgs.zed-editor;
extensions = [
"nix"
"toml"
"rust"
"git-firefly"
];
userSettings = {
"autosave" = "on_focus_change";
"ui_font_size" = 16;
"buffer_font_size" = 15;
"theme" = {
"mode" = "light";
"light" = "One Light";
"dark" = "One Dark";
};
"theme_overrides" = {
"One Light" = {
"background" = "#FDF7F9";
"status_bar.background" = "#FDF7F9";
"title_bar.background" = "#FDF7F9";
"elevated_surface.background" = "#FDF7F9";
# 핵심: sidebar/project panel 쪽은 투명 제거
"surface.background" = "#FDF7F9";
"panel.background" = "#FDF7F9";
"editor.gutter.background" = "#FDF7F9";
"tab_bar.background" = "#FDF7F9";
"toolbar.background" = "#FDF7F9";
"terminal.background" = "#FDF7F9";
# editor만 투명 유지하고 싶으면 이건 남겨도 됨
"editor.background" = "#00000000";
"editor.line_number" = "#A38F96";
"border" = "#F2E6EA";
"hint.background" = "#F7EBEE";
"editor.active_line_number" = "#191013";
"tab.active_background" = "#8165701a";
"element.selected" = "#8165701a";
"tab.inactive_background" = "#FDF7F9";
"editor.indent_guide" = "#F2E6EA";
"editor.indent_guide_active" = "#E6D5DB";
"panel.indent_guide" = "#F2E6EA";
"panel.indent_guide_hover" = "#E6D5DB";
"panel.indent_guide_active" = "#D9C4CC";
"panel.focused_border" = "#00000000";
"element.active" = "#81657029";
"border.variant" = "#00000000";
"scrollbar.track.border" = "#00000000";
"editor.active_line.background" = "#8165700f";
"scrollbar.track.background" = "#00000000";
"scrollbar.thumb.background" = "#A38F9680";
"ghost_element.background" = "#00000000";
"element.hover" = "#8165700f";
"ghost_element.hover" = "#8165700f";
"ghost_element.active" = "#8165701a";
"ghost_element.selected" = "#81657024";
"drop_target.background" = "#8165701a";
"editor.highlighted_line.background" = "#8165701a";
};
};
};
};
}