Merge branch 'main' of paperclover.dev:nix/config
This commit is contained in:
commit
6f01e88f0c
4 changed files with 47 additions and 24 deletions
|
@ -5,6 +5,7 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
imports = [ ./options.nix ];
|
||||||
# based on default options from upstream:
|
# based on default options from upstream:
|
||||||
# https://github.com/NotAShelf/nvf/blob/main/configuration.nix
|
# https://github.com/NotAShelf/nvf/blob/main/configuration.nix
|
||||||
#
|
#
|
||||||
|
@ -18,24 +19,6 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
undoFile.enable = true;
|
|
||||||
|
|
||||||
options = {
|
|
||||||
tabstop = 2;
|
|
||||||
softtabstop = 2;
|
|
||||||
shiftwidth = 2;
|
|
||||||
swapfile = false;
|
|
||||||
showmode = false;
|
|
||||||
foldlevel = 99;
|
|
||||||
foldcolumn = "1";
|
|
||||||
foldlevelstart = 99;
|
|
||||||
foldenable = true;
|
|
||||||
foldmethod = "expr";
|
|
||||||
#Default to treesitter folding
|
|
||||||
foldexpr = "v:lua.vim.treesitter.foldexpr()";
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
visuals = {
|
visuals = {
|
||||||
# notification system
|
# notification system
|
||||||
# https://github.com/j-hui/fidget.nvim
|
# https://github.com/j-hui/fidget.nvim
|
||||||
|
@ -110,7 +93,6 @@
|
||||||
css.enable = true;
|
css.enable = true;
|
||||||
html.enable = true;
|
html.enable = true;
|
||||||
markdown.enable = true;
|
markdown.enable = true;
|
||||||
nix.enable = true;
|
|
||||||
python.enable = true;
|
python.enable = true;
|
||||||
rust.crates.enable = true;
|
rust.crates.enable = true;
|
||||||
rust.enable = true;
|
rust.enable = true;
|
||||||
|
@ -119,8 +101,12 @@
|
||||||
lua.enable = true;
|
lua.enable = true;
|
||||||
# sort-lines: off
|
# sort-lines: off
|
||||||
|
|
||||||
ts.format.enable = true; # deno fmt is enabled elsewhere
|
ts.format.enable = false; # deno fmt is enabled elsewhere
|
||||||
nix.format.type = "nixfmt"; # looks so much nicer
|
nix = {
|
||||||
|
enable = true;
|
||||||
|
format.type = "nixfmt"; # looks so much nicer
|
||||||
|
lsp.options.autoArchive = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
formatter.conform-nvim = {
|
formatter.conform-nvim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
26
modules/neovim/options.nix
Normal file
26
modules/neovim/options.nix
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
config.vim.options = {
|
||||||
|
# Indentation
|
||||||
|
tabstop = 2;
|
||||||
|
softtabstop = 2;
|
||||||
|
shiftwidth = 2;
|
||||||
|
showmode = false;
|
||||||
|
|
||||||
|
# Default to treesitter folding
|
||||||
|
foldenable = true;
|
||||||
|
foldmethod = "expr";
|
||||||
|
foldexpr = "v:lua.vim.treesitter.foldexpr()";
|
||||||
|
foldlevel = 99;
|
||||||
|
foldcolumn = "1";
|
||||||
|
foldlevelstart = 99;
|
||||||
|
|
||||||
|
# Case-insensitive find-in-file
|
||||||
|
ignorecase = true;
|
||||||
|
smartcase = true;
|
||||||
|
|
||||||
|
# Enable swapfile, but not in the same location as the source files.
|
||||||
|
undofile = true;
|
||||||
|
swapfile = true;
|
||||||
|
};
|
||||||
|
}
|
|
@ -19,6 +19,7 @@ in
|
||||||
];
|
];
|
||||||
# packages to install for desktop environments (non-server)
|
# packages to install for desktop environments (non-server)
|
||||||
desktop = [
|
desktop = [
|
||||||
|
git-town
|
||||||
];
|
];
|
||||||
# packages to install on all servers
|
# packages to install on all servers
|
||||||
server = [ ];
|
server = [ ];
|
||||||
|
@ -46,7 +47,7 @@ in
|
||||||
shader = "cursor-smear-black.glsl";
|
shader = "cursor-smear-black.glsl";
|
||||||
package = null;
|
package = null;
|
||||||
settings = {
|
settings = {
|
||||||
theme = "catppuccin-latte";
|
theme = "light:catppuccin-latte,dark:catppuccin-macchiato";
|
||||||
font-family = "AT Name Mono";
|
font-family = "AT Name Mono";
|
||||||
adjust-cursor-thickness = 1;
|
adjust-cursor-thickness = 1;
|
||||||
minimum-contrast = 1.1;
|
minimum-contrast = 1.1;
|
||||||
|
|
|
@ -2,8 +2,16 @@
|
||||||
{
|
{
|
||||||
# these programs are not globally installed to reduce distractions.
|
# these programs are not globally installed to reduce distractions.
|
||||||
# most of these are needed for my work environment.
|
# most of these are needed for my work environment.
|
||||||
programs.bun.enable = true;
|
programs = {
|
||||||
programs.zed-editor.enable = true;
|
bun.enable = true;
|
||||||
|
zed-editor.enable = true;
|
||||||
|
zsh.profileExtra = ''
|
||||||
|
_bun() {
|
||||||
|
local context state line
|
||||||
|
_arguments -C '*:file:_files'
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
doppler
|
doppler
|
||||||
nodejs_22
|
nodejs_22
|
||||||
|
@ -14,5 +22,7 @@
|
||||||
yt-dlp
|
yt-dlp
|
||||||
spotdl
|
spotdl
|
||||||
zig
|
zig
|
||||||
|
ssm-session-manager-plugin
|
||||||
|
awscli
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue