Changed: minor stuff; Added: Optimisation of nix

This commit is contained in:
2026-02-06 00:43:37 +01:00
parent 3ce95ebe41
commit 150fd4d6c0
8 changed files with 68 additions and 33 deletions

View File

@@ -11,10 +11,27 @@
nix = { nix = {
settings = { settings = {
experimental-features = [ "nix-command" "flakes" ]; 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 # disabled due to https://github.com/NixOS/nix/issues/7273
# auto-optimise-store = true; # 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; }; nixpkgs.config = { allowUnfree = true; };
@@ -35,6 +52,7 @@
# macOS-specific settings # macOS-specific settings
programs.fish.enable = true; programs.fish.enable = true;
environment.shells = [ pkgs.fish ];
system.primaryUser = primaryUser; system.primaryUser = primaryUser;
users.users.${primaryUser} = { users.users.${primaryUser} = {
home = "/Users/${primaryUser}"; home = "/Users/${primaryUser}";

View File

@@ -13,11 +13,7 @@
# homebrew is best for GUI apps # homebrew is best for GUI apps
# nixpkgs is best for CLI tools # nixpkgs is best for CLI tools
casks = [ casks = [ "element" "affinity" "onlyoffice" ];
"element"
"affinity"
];
brews = [ ]; brews = [ ];
taps = [ ]; taps = [ ];
}; };

View File

@@ -4,7 +4,7 @@
"type": "kitty-icat", "type": "kitty-icat",
"source": "~/Pictures/Avatar/avatar_no_bg.png", "source": "~/Pictures/Avatar/avatar_no_bg.png",
// "height": 15, // "height": 15,
"width": 40, "width": 36,
"padding": { "padding": {
"top": 0, "top": 0,
"left": 0 "left": 0
@@ -31,11 +31,6 @@
"key": "│ ├󰍛", "key": "│ ├󰍛",
"keyColor": "green" "keyColor": "green"
}, },
{
"type": "memory",
"key": "│ ├󰍛",
"keyColor": "green"
},
{ {
"type": "disk", "type": "disk",
"key": "│ ├", "key": "│ ├",

View File

@@ -106,7 +106,7 @@
#on_press.__raw = "function() require('yazi').yazi() end"; #on_press.__raw = "function() require('yazi').yazi() end";
opts = { opts = {
keymap = [ "n" "a" ":AvanteChatNew<CR>" { } ]; keymap = [ "n" "a" ":AvanteChatNew<CR>" { } ];
shortcut = "y"; shortcut = "a";
position = "center"; position = "center";
cursor = 3; cursor = 3;
width = 50; width = 50;

View File

@@ -12,7 +12,7 @@
./alpha.nix ./alpha.nix
./avante.nix ./avante.nix
./openscad.nix ./openscad.nix
./jupytext.nix ./molten.nix
./live-server.nix ./live-server.nix
./which-key.nix ./which-key.nix
]; ];

View File

@@ -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
View 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
View File

@@ -0,0 +1 @@
_: { programs.onlyoffice.enable = true; }