Compare commits
12 commits
6fbf0f2b7d
...
7d8843c399
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d8843c399 | |||
| 8c313aae37 | |||
| 7e65bc03b3 | |||
| 117cf07697 | |||
| 01cf173573 | |||
| b6a67cfa98 | |||
| 8e283c2288 | |||
| 69205e695f | |||
| 20465843e4 | |||
| c7f76d5c1c | |||
| d40b20d8cc | |||
| 9fcc736104 |
5 changed files with 91 additions and 18 deletions
|
|
@ -23,7 +23,6 @@
|
||||||
- libwebp-devel
|
- libwebp-devel
|
||||||
- mkvtoolnix
|
- mkvtoolnix
|
||||||
- mpv
|
- mpv
|
||||||
- musescore
|
|
||||||
- nextcloud-client
|
- nextcloud-client
|
||||||
- nextcloud-client-dolphin
|
- nextcloud-client-dolphin
|
||||||
- obs-studio
|
- obs-studio
|
||||||
|
|
@ -90,7 +89,6 @@
|
||||||
- io.openrct2.OpenRCT2
|
- io.openrct2.OpenRCT2
|
||||||
- org.signal.Signal
|
- org.signal.Signal
|
||||||
- org.zulip.Zulip
|
- org.zulip.Zulip
|
||||||
- net.ankiweb.Anki
|
|
||||||
state: latest
|
state: latest
|
||||||
method: user
|
method: user
|
||||||
remote: flathub
|
remote: flathub
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,11 @@
|
||||||
};
|
};
|
||||||
merge = { conflictstyle = "zdiff3"; };
|
merge = { conflictstyle = "zdiff3"; };
|
||||||
pull = { rebase = true; };
|
pull = { rebase = true; };
|
||||||
|
"url \"ssh://git@github.com/\"".insteadOf = "https://github.com/";
|
||||||
|
"url \"ssh://git@gitlab.com/\"".insteadOf = "https://gitlab.com/";
|
||||||
|
"url \"ssh://git@codeberg.com/\"".insteadOf = "https://codeberg.com/";
|
||||||
|
"url \"ssh://git@code.millironx.com/\"".insteadOf =
|
||||||
|
"https://code.millironx.com/";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,53 @@ let
|
||||||
}
|
}
|
||||||
|
|
||||||
'';
|
'';
|
||||||
|
sourceCodeDirectory =
|
||||||
|
if pkgs.stdenv.hostPlatform.isDarwin then "~/Developer" else "~/src";
|
||||||
|
clone_bash_function = ''
|
||||||
|
unalias gc
|
||||||
|
function gc() {
|
||||||
|
REPO_ID="$(echo "''${1}" | \
|
||||||
|
awk '{
|
||||||
|
sub(/^git@/, "");
|
||||||
|
sub(/^https:\/\//, "");
|
||||||
|
sub (/:/, "/");
|
||||||
|
sub(/\.git$/, "");
|
||||||
|
print
|
||||||
|
}')"
|
||||||
|
git clone "https://''${REPO_ID}.git" ${sourceCodeDirectory}/''${REPO_ID}
|
||||||
|
cd ${sourceCodeDirectory}/''${REPO_ID}
|
||||||
|
}
|
||||||
|
|
||||||
|
'';
|
||||||
|
repo_init_function = ''
|
||||||
|
function rinit() {
|
||||||
|
REPO_ID="$(echo "''${1}" | \
|
||||||
|
awk '{
|
||||||
|
sub(/^git@/, "");
|
||||||
|
sub(/^https:\/\//, "");
|
||||||
|
sub (/:/, "/");
|
||||||
|
sub(/\.git$/, "");
|
||||||
|
print
|
||||||
|
}')"
|
||||||
|
|
||||||
|
mkdir -p ${sourceCodeDirectory}/''${REPO_ID}
|
||||||
|
cd ${sourceCodeDirectory}/''${REPO_ID}
|
||||||
|
|
||||||
|
git init
|
||||||
|
|
||||||
|
git remote add origin git@''${REPO_ID/\//:}.git
|
||||||
|
}
|
||||||
|
|
||||||
|
'';
|
||||||
|
|
||||||
|
shell_functions = shell:
|
||||||
|
(conda_init shell) + nd_bash_function + clone_bash_function
|
||||||
|
+ repo_init_function;
|
||||||
in {
|
in {
|
||||||
programs = {
|
programs = {
|
||||||
bash = {
|
bash = {
|
||||||
enable = true;
|
enable = true;
|
||||||
initExtra = conda_init "bash" + nd_bash_function + ''
|
initExtra = shell_functions "bash" + ''
|
||||||
export PS1="[\[\e[32m\]\u\[\e[m\]@\[\e[33m\]\h\[\e[m\] \[\e[34m\]\W\[\e[m\]] \\$ "
|
export PS1="[\[\e[32m\]\u\[\e[m\]@\[\e[33m\]\h\[\e[m\] \[\e[34m\]\W\[\e[m\]] \\$ "
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
@ -37,7 +79,7 @@ in {
|
||||||
"zsh-users/zsh-completions"
|
"zsh-users/zsh-completions"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
initContent = conda_init "zsh" + nd_bash_function;
|
initContent = shell_functions "zsh";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,13 +23,25 @@
|
||||||
use_modifier_to_send = true;
|
use_modifier_to_send = true;
|
||||||
default_model = {
|
default_model = {
|
||||||
provider = "zed.dev";
|
provider = "zed.dev";
|
||||||
model = "claude-3-7-sonnet";
|
model = "claude-sonnet-4-5";
|
||||||
};
|
};
|
||||||
default_profile = "minimal";
|
default_profile = "minimal";
|
||||||
};
|
};
|
||||||
buffer_font_family = "FiraCode Nerd Font";
|
buffer_font_family = "FiraCode Nerd Font";
|
||||||
buffer_font_size = 11;
|
buffer_font_size = 11;
|
||||||
features = { edit_prediction_provider = "zed"; };
|
features = { edit_prediction_provider = "zed"; };
|
||||||
|
git_hosting_providers = [
|
||||||
|
{
|
||||||
|
provider = "forgejo";
|
||||||
|
base_url = "https://code.millironx.com";
|
||||||
|
name = "Milliron X Code";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
provider = "forgejo";
|
||||||
|
base_url = "https://codeberg.org";
|
||||||
|
name = "Codeberg";
|
||||||
|
}
|
||||||
|
];
|
||||||
languages = {
|
languages = {
|
||||||
Julia = {
|
Julia = {
|
||||||
formatter = {
|
formatter = {
|
||||||
|
|
@ -52,12 +64,12 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Nix = {
|
||||||
|
formatter.external.command = "${pkgs.nixfmt-classic}/bin/nixfmt";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
lsp = {
|
lsp = {
|
||||||
nil = {
|
nil = { settings.nix.flake.autoArchive = true; };
|
||||||
initialization_options.formatting.command = [ "nixfmt" ];
|
|
||||||
settings.nix.flake.autoArchive = true;
|
|
||||||
};
|
|
||||||
texlab = {
|
texlab = {
|
||||||
settings = {
|
settings = {
|
||||||
build = {
|
build = {
|
||||||
|
|
@ -75,6 +87,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
tinymist = {
|
tinymist = {
|
||||||
|
initialization_options = { preview.background.enabled = true; };
|
||||||
settings = {
|
settings = {
|
||||||
exportPdf = "onSave";
|
exportPdf = "onSave";
|
||||||
outputPath = "$root/$name";
|
outputPath = "$root/$name";
|
||||||
|
|
@ -97,12 +110,28 @@
|
||||||
ui_font_size = 16;
|
ui_font_size = 16;
|
||||||
wrap_guides = [ 80 92 120 ];
|
wrap_guides = [ 80 92 120 ];
|
||||||
};
|
};
|
||||||
userTasks = [{
|
userTasks = [
|
||||||
|
{
|
||||||
label = "latexmk (project)";
|
label = "latexmk (project)";
|
||||||
command = "latexmk";
|
command = "latexmk";
|
||||||
args = [ "-synctex=1" "-pdf" "-recorder" ];
|
args = [ "-synctex=1" "-pdf" "-recorder" ];
|
||||||
cwd = "$ZED_DIRNAME";
|
cwd = "$ZED_DIRNAME";
|
||||||
tags = [ "latex-build" ];
|
tags = [ "latex-build" ];
|
||||||
}];
|
}
|
||||||
|
{
|
||||||
|
label = "Open Typst preview";
|
||||||
|
command = "${
|
||||||
|
if pkgs.stdenv.hostPlatform.isDarwin then "open" else "xdg-open"
|
||||||
|
} http://127.0.0.1:23635/";
|
||||||
|
use_new_terminal = true;
|
||||||
|
allow_concurrent_runs = false;
|
||||||
|
reveal = "never";
|
||||||
|
reveal_target = "dock";
|
||||||
|
hide = "always";
|
||||||
|
shell = "system";
|
||||||
|
show_summary = true;
|
||||||
|
show_command = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -207,7 +207,6 @@ in {
|
||||||
];
|
];
|
||||||
casks = [
|
casks = [
|
||||||
"alt-tab"
|
"alt-tab"
|
||||||
"anki"
|
|
||||||
"db-browser-for-sqlite"
|
"db-browser-for-sqlite"
|
||||||
"dolphin"
|
"dolphin"
|
||||||
"firefox"
|
"firefox"
|
||||||
|
|
@ -216,7 +215,6 @@ in {
|
||||||
"iterm2"
|
"iterm2"
|
||||||
"logseq"
|
"logseq"
|
||||||
"macfuse"
|
"macfuse"
|
||||||
"musescore"
|
|
||||||
"nextcloud"
|
"nextcloud"
|
||||||
"openrct2"
|
"openrct2"
|
||||||
"qownnotes"
|
"qownnotes"
|
||||||
|
|
@ -234,6 +232,7 @@ in {
|
||||||
"ungoogled-chromium"
|
"ungoogled-chromium"
|
||||||
"veracrypt"
|
"veracrypt"
|
||||||
"vlc"
|
"vlc"
|
||||||
|
"vienna"
|
||||||
"vorta"
|
"vorta"
|
||||||
"zed"
|
"zed"
|
||||||
"zotero"
|
"zotero"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue