Changed: minor stuff; Added: Optimisation of nix
This commit is contained in:
@@ -11,10 +11,27 @@
|
||||
nix = {
|
||||
settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
max-jobs = "auto"; # Use all CPU cores
|
||||
cores = 0; # Use all cores per build
|
||||
# disabled due to https://github.com/NixOS/nix/issues/7273
|
||||
# auto-optimise-store = true;
|
||||
};
|
||||
enable = false; # using determinate installer
|
||||
enable = true; # using determinate installer
|
||||
|
||||
# Garbage collection
|
||||
gc = {
|
||||
automatic = true;
|
||||
interval = { Weekday = 7; }; # Run weekly
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
};
|
||||
|
||||
# Disable Docs
|
||||
documentation = {
|
||||
enable = true;
|
||||
doc.enable = false; # Skip large documentation
|
||||
man.enable = true; # Keep man pages
|
||||
info.enable = false; # Skip info pages
|
||||
};
|
||||
|
||||
nixpkgs.config = { allowUnfree = true; };
|
||||
@@ -35,6 +52,7 @@
|
||||
|
||||
# macOS-specific settings
|
||||
programs.fish.enable = true;
|
||||
environment.shells = [ pkgs.fish ];
|
||||
system.primaryUser = primaryUser;
|
||||
users.users.${primaryUser} = {
|
||||
home = "/Users/${primaryUser}";
|
||||
|
||||
@@ -13,11 +13,7 @@
|
||||
|
||||
# homebrew is best for GUI apps
|
||||
# nixpkgs is best for CLI tools
|
||||
casks = [
|
||||
"element"
|
||||
"affinity"
|
||||
|
||||
];
|
||||
casks = [ "element" "affinity" "onlyoffice" ];
|
||||
brews = [ ];
|
||||
taps = [ ];
|
||||
};
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"type": "kitty-icat",
|
||||
"source": "~/Pictures/Avatar/avatar_no_bg.png",
|
||||
// "height": 15,
|
||||
"width": 40,
|
||||
"width": 36,
|
||||
"padding": {
|
||||
"top": 0,
|
||||
"left": 0
|
||||
@@ -31,11 +31,6 @@
|
||||
"key": "│ ├",
|
||||
"keyColor": "green"
|
||||
},
|
||||
{
|
||||
"type": "memory",
|
||||
"key": "│ ├",
|
||||
"keyColor": "green"
|
||||
},
|
||||
{
|
||||
"type": "disk",
|
||||
"key": "│ ├",
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
#on_press.__raw = "function() require('yazi').yazi() end";
|
||||
opts = {
|
||||
keymap = [ "n" "a" ":AvanteChatNew<CR>" { } ];
|
||||
shortcut = "y";
|
||||
shortcut = "a";
|
||||
position = "center";
|
||||
cursor = 3;
|
||||
width = 50;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
./alpha.nix
|
||||
./avante.nix
|
||||
./openscad.nix
|
||||
./jupytext.nix
|
||||
./molten.nix
|
||||
./live-server.nix
|
||||
./which-key.nix
|
||||
];
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
{ ... }: {
|
||||
# Jupytext: Execute Jupyter notebooks directly in Neovim
|
||||
programs.nixvim.jupytext = {
|
||||
enable = true;
|
||||
settings = {
|
||||
custom_language_formatting = {
|
||||
python = {
|
||||
extension = "md";
|
||||
force_ft = "markdown";
|
||||
style = "markdown";
|
||||
};
|
||||
};
|
||||
force_ft = null;
|
||||
output_extension = "auto";
|
||||
style = "light";
|
||||
};
|
||||
};
|
||||
}
|
||||
43
home/neovim/molten.nix
Normal file
43
home/neovim/molten.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{ pkgs, ... }: {
|
||||
programs.nixvim = {
|
||||
plugins.molten = {
|
||||
enable = true;
|
||||
python3Dependencies = p:
|
||||
with p; [
|
||||
pynvim
|
||||
jupyter-client
|
||||
cairosvg
|
||||
ipython
|
||||
nbformat
|
||||
ipykernel
|
||||
pnglatex
|
||||
plotly
|
||||
kaleido
|
||||
pyperclip
|
||||
];
|
||||
settings = {
|
||||
kernel_name = "python3";
|
||||
auto_open_output = true;
|
||||
output_win_max_width = 80;
|
||||
output_win_max_height = 20;
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>ml";
|
||||
action = "<cmd>MoltenEvaluateLine<CR>";
|
||||
options.desc = "Molten: Evaluate line";
|
||||
options.silent = true;
|
||||
}
|
||||
{
|
||||
mode = "v";
|
||||
key = "<leader>mv";
|
||||
action = "<Cmd>MoltenEvaluateVisual<CR>";
|
||||
options.desc = "Molten: Evaluate selection";
|
||||
options.silent = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
1
home/onlyoffice.nix
Normal file
1
home/onlyoffice.nix
Normal file
@@ -0,0 +1 @@
|
||||
_: { programs.onlyoffice.enable = true; }
|
||||
Reference in New Issue
Block a user