Watch
1
0
Fork
You've already forked chitin
0

removed nvf

and in turn, removed Neovim. added nanorc
This commit is contained in:
asnev 2026-11-02 07:17:40 +07:00
commit bb9ac0adce
Signed by: asnev
SSH key fingerprint: SHA256:8hagYq9hDUuS5clQ78FKhIoQDvg5crdkYMHX+3g7wB4
11 changed files with 152 additions and 290 deletions

View file

@ -19,12 +19,13 @@ only KDE Plasma has been set up so far. (TODO: declaratively configure with [pla
* `assets/` - media and binary assets * `assets/` - media and binary assets
* `modules/` - flake modules (auto-imported with [import-tree](https://github.com/denful/import-tree)) * `modules/` - flake modules (auto-imported with [import-tree](https://github.com/denful/import-tree))
* `flake/` - infra-related Nix flake logic
* `nixos/` - NixOS configurations that apply to all hosts and users * `nixos/` - NixOS configurations that apply to all hosts and users
* `home/` - user environment management via `home-manager` (installed as a NixOS module) * `programs/` - system-wide packages and programs
* `home/` - user environment management via [Home Manager](https://github.com/nix-community/home-manager) (installed as a NixOS module)
* `hosts/` - per-host specific configuration * `hosts/` - per-host specific configuration
* `packages/` - additional package overlays * `packages/` - additional package overlays
* `shells/` - TUI niceties (maybe `devshells` too?) * `shells/` - TUI niceties (maybe `devshells` too?)
* `flake/` - infra-related Nix flake logic
## musings ## musings
@ -37,5 +38,5 @@ only KDE Plasma has been set up so far. (TODO: declaratively configure with [pla
## licences ## licences
[MIT](LICENSE) for the code, [Unsplash License](https://unsplash.com/license) for the banner image, from [iamateapot](https://unsplash.com/photos/a-mushroom-growing-in-a-forest-CRHNiHXXFIs) with edits from me. [MIT Licence](LICENSE) for the code, [Unsplash Licence](https://unsplash.com/license) for the banner image, courtesy of [iamateapot](https://unsplash.com/photos/a-mushroom-growing-in-a-forest-CRHNiHXXFIs) with edits from me.

54
flake.lock generated
View file

@ -1,21 +1,5 @@
{ {
"nodes": { "nodes": {
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1777699697,
"narHash": "sha256-Eg9b/rq/ECYwNwEXs5i9wHyhxNI0JrYx2srdI2uZMaQ=",
"ref": "refs/heads/main",
"rev": "382052b74656a369c5408822af3f2501e9b1af81",
"revCount": 94,
"type": "git",
"url": "https://git.lix.systems/lix-project/flake-compat.git"
},
"original": {
"type": "git",
"url": "https://git.lix.systems/lix-project/flake-compat.git"
}
},
"flake-file": { "flake-file": {
"locked": { "locked": {
"lastModified": 1792905615, "lastModified": 1792905615,
@ -85,21 +69,6 @@
"type": "github" "type": "github"
} }
}, },
"mnw": {
"locked": {
"lastModified": 1784154424,
"narHash": "sha256-HRn4O1X2ShYtbq5Egji72/aemyc2cIQicjRZD9hBqM8=",
"owner": "Gerg-L",
"repo": "mnw",
"rev": "0151d9fa87992cbeb67c86616fb9170dcec830b6",
"type": "github"
},
"original": {
"owner": "Gerg-L",
"repo": "mnw",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1792898606, "lastModified": 1792898606,
@ -140,28 +109,6 @@
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1100280.3ec636362e18/nixexprs.tar.zst" "url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1100280.3ec636362e18/nixexprs.tar.zst"
} }
}, },
"nvf": {
"inputs": {
"flake-compat": "flake-compat",
"mnw": "mnw",
"nixpkgs": [
"nixpkgs-unstable"
]
},
"locked": {
"lastModified": 1793047357,
"narHash": "sha256-eY8aBTGSgtx+25254i22jyjbj+JQkEIfb+JyQ2Exnuk=",
"owner": "NotAShelf",
"repo": "nvf",
"rev": "60b4593979c39e9a1227c9913bd835bb1a59054b",
"type": "github"
},
"original": {
"owner": "NotAShelf",
"repo": "nvf",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"flake-file": "flake-file", "flake-file": "flake-file",
@ -173,7 +120,6 @@
"nixpkgs-unstable" "nixpkgs-unstable"
], ],
"nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-unstable": "nixpkgs-unstable",
"nvf": "nvf",
"xcursor-plan9": "xcursor-plan9" "xcursor-plan9": "xcursor-plan9"
} }
}, },

View file

@ -14,10 +14,6 @@
nixpkgs.url = "https://channels.nixos.org/nixos-26.05/nixexprs.tar.zst"; nixpkgs.url = "https://channels.nixos.org/nixos-26.05/nixexprs.tar.zst";
nixpkgs-lib.follows = "nixpkgs-unstable"; nixpkgs-lib.follows = "nixpkgs-unstable";
nixpkgs-unstable.url = "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1100280.3ec636362e18/nixexprs.tar.zst"; nixpkgs-unstable.url = "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1100280.3ec636362e18/nixexprs.tar.zst";
nvf = {
url = "github:NotAShelf/nvf";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
xcursor-plan9 = { xcursor-plan9 = {
url = "github:wintermute-cell/xcursor-plan9"; url = "github:wintermute-cell/xcursor-plan9";
flake = false; flake = false;

View file

@ -1,215 +0,0 @@
{inputs, ...}: {
flake-file.inputs.nvf = {
url = "github:NotAShelf/nvf";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
flake.modules.homeManager.primaryUser = {pkgs, ...}: {
imports = [inputs.nvf.homeManagerModules.default];
programs.nvf = {
enable = true;
defaultEditor = true;
enableManpages = true;
settings.vim = {
viAlias = true;
vimAlias = true;
syntaxHighlighting = true;
lineNumberMode = "relNumber";
searchCase = "smart";
hideSearchHighlight = false;
terminal.toggleterm = {
enable = true;
mappings.open = "<c-t>";
lazygit = {
enable = true;
package = pkgs.unstable.lazygit;
mappings.open = "<leader>gg";
};
};
extraPackages = with pkgs.unstable; [
tree-sitter
];
visuals = {
rainbow-delimiters.enable = true;
};
clipboard = {
enable = true;
registers = "unnamedplus";
providers.wl-copy.enable = true;
};
options = {
encoding = "utf-8";
backspace = "indent,eol,start";
history = 1000;
mouse = "a";
updatetime = 300;
ruler = true;
cursorline = true;
showcmd = true;
showmode = true;
laststatus = 1;
wildmenu = true;
wildmode = ["longest" "list" "full"];
ttyfast = true;
lazyredraw = true;
signcolumn = "no";
autoindent = true;
expandtab = true;
smarttab = true;
tabstop = 4;
shiftwidth = 4;
softtabstop = 4;
hlsearch = true;
incsearch = true;
termguicolors = true;
background = "dark";
showmatch = true;
};
theme = {
enable = true;
name = "gruvbox";
style = "dark";
};
keymaps = [
{
mode = "i";
key = "<C-l>";
action = "λ";
desc = "inserts lowercase lambda";
}
];
languages.nix = {
enable = true;
treesitter.enable = true;
lsp.enable = true;
format.enable = false;
extraDiagnostics.enable = false;
};
utility.undotree.enable = true;
augroups = [
{
name = "my_filetype_settings";
clear = true;
}
];
autocmds = [
{
event = ["FileType"];
pattern = [
"javascript"
"javascriptreact"
"typescript"
"typescriptreact"
"html"
"css"
"scss"
"json"
"jsonc"
"vue"
"svelte"
"yaml"
"toml"
"markdown"
"nix"
"vim"
"ruby"
"eruby"
"dart"
"haskell"
"elm"
];
group = "my_filetype_settings";
desc = "2-space indent";
command = "setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2";
}
{
event = ["FileType"];
pattern = [
"python"
"rust"
"java"
"lua"
"c"
"cpp"
"cs"
"php"
"kotlin"
"swift"
"scala"
"perl"
];
group = "my_filetype_settings";
desc = "4-space indent";
command = "setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4";
}
{
event = ["FileType"];
pattern = ["go" "gomod" "make"];
group = "my_filetype_settings";
desc = "hard tabs";
command = "setlocal noexpandtab tabstop=4 shiftwidth=4 softtabstop=0";
}
{
event = ["FileType"];
pattern = ["lisp" "scheme" "clojure" "racket" "fennel"];
group = "my_filetype_settings";
desc = "Lisp-style indent";
command = "setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2 lisp autoindent";
}
];
luaConfigRC = {
my_lispwords = ''
vim.opt.lispwords:append({
"defun", "defmacro", "defvar", "defparameter", "defmethod",
"define-syntax", "lambda", "let", "let*", "letrec", "flet",
"labels", "progn", "when", "unless", "if", "cond",
})
'';
rainbow-delimiters = ''
vim.g.rainbow_delimiters = {
strategy = {
[''''] = 'rainbow-delimiters.strategy.global',
scheme = 'rainbow-delimiters.strategy.local',
clojure = 'rainbow-delimiters.strategy.local',
},
query = {
[''''] = 'rainbow-delimiters',
},
highlight = {
'RainbowDelimiterRed',
'RainbowDelimiterYellow',
'RainbowDelimiterBlue',
'RainbowDelimiterOrange',
'RainbowDelimiterGreen',
'RainbowDelimiterViolet',
'RainbowDelimiterCyan',
},
}
'';
};
};
};
};
}

View file

@ -4,6 +4,7 @@
python315 python315
# system utils # system utils
file file
mc
firmware-updater firmware-updater
mtr mtr
gnupg gnupg

View file

@ -19,19 +19,19 @@
}; };
flake.modules.nixos = rec { flake.modules.nixos = rec {
base = {pkgs, ...}: { # base = {pkgs, ...}: {
environment.systemPackages = [pkgs.xcursor-plan9]; # environment.systemPackages = [pkgs.xcursor-plan9];
environment.variables = { # environment.variables = {
XCURSOR_THEME = "plan9"; # XCURSOR_THEME = "plan9";
XCURSOR_SIZE = "16"; # XCURSOR_SIZE = "16";
}; # };
}; # };
#
sddm = { # sddm = {
services.displayManager.sddm.settings.Theme = { # services.displayManager.sddm.settings.Theme = {
CursorTheme = base.environment.variables.XCURSOR_THEME; # CursorTheme = base.environment.variables.XCURSOR_THEME;
CursorSize = base.environment.variables.XCURSOR_SIZE; # CursorSize = base.environment.variables.XCURSOR_SIZE;
}; # };
}; # };
}; };
} }

View file

@ -0,0 +1,11 @@
{
flake.modules.nixos.base = {
programs.atuin = {
enable = true;
settings = {
sync_address = "https://api.atuin.sh";
enter_accept = true;
};
};
};
}

13
modules/programs/git.nix Normal file
View file

@ -0,0 +1,13 @@
{
flake.modules.nixos.base = {
programs.git = {
enable = true;
config = {
init.defaultBranch = "main";
advice.defaultBranchName = false;
gpg.format = "ssh";
commit.gpgSign = true;
};
};
};
}

133
modules/programs/nano.nix Normal file
View file

@ -0,0 +1,133 @@
{
flake.modules.nixos.base = {pkgs, ...}: {
programs.nano = {
enable = true;
package = pkgs.unstable.nano;
nanorc = ''
# actual nano configuration
set atblanks
set autoindent
set casesensitive
set constantshow
set cutfromcursor
set jumpyscrolling
set linenumbers
set minibar
set mouse
set newbuffer
set nohelp
set numbercolor normal,normal
set smarthome
set softwrap
set tabsize 4
set tabstospaces
set titlecolor normal,normal
# keybinds (editing buffer)
unbind ^S main
bind ^S whereis main # `C-s` - search forward
unbind ^Q main
bind ^Q verbatim main # `C-q` - quoted insert
unbind ^W main
bind ^W cut main
unbind ^C main
bind ^C discardbuffer main # `C-c` - (kill-buffer)
unbind ^T main
bind ^T insert main # `C-x C-f` replacement?
unbind ^U main
# bind ^U ... main
bind ^F forward main
bind ^B back main
# ^N, ^P, ^A and ^E already ok by default
bind M-F nextword main
bind M-B prevword main
bind M-{ beginpara main
bind M-} endpara main
bind M-< firstline main
bind M-> lastline main
unbind M-A main
bind M-A prevblock main
unbind M-E main
bind M-E nextblock main
# ^V already ok by default
bind M-V pageup main
bind ^L center main
bind M-Minus scrollup main
bind M-Plus scrolldown main
bind Sh-M-T toprow main
bind Sh-M-B bottomrow main
bind M-D chopwordright main
# ^D, ^K (cutfromcursor) and M-Bsp already ok by default
bind ^W cut main
bind M-W copy main
bind ^Y paste main
bind M-Del zap main
bind ^Space mark main
bind ^S whereis main
bind ^R wherewas main
bind M-5 replace main
bind M-] findbracket main
bind M-C casesens search
bind M-R regexp search
bind M-B backwards search
bind M-P older search
bind M-N newer search
bind ^/ undo main
bind M-/ redo main
# ^O and ^X already ok by default
bind M-G gotoline main
bind M-= wordcount main
bind M-$ spell main
bind ^J justify main
bind M-J fulljustify main
bind M-; comment main
bind ^] complete main
bind M-! execute main
bind M-L linter main
bind M-: formatter
bind M-. indent main
bind M-, unindent main
bind F3 recordmacro main
bind F4 runmacro main
bind M-N linenumbers main
bind M-P whitespacedisplay main
bind M-Y softwrap main
bind M-I autoindent main
bind M-0 tabstospaces main
bind F1 help main
bind ^G cancel all
bind ^Q verbatim main
bind ^Z suspend main
bind ^G gotodir browser
bind ^W whereisfile browser
bind ^R replacewith replace
'';
};
};
}

5
modules/programs/nh.nix Normal file
View file

@ -0,0 +1,5 @@
{
flake.modules.nixos.base = {
programs.nh.enable = true;
};
}

View file

@ -0,0 +1,15 @@
{
flake.modules.nixos.base = {pkgs, ...}: {
programs.nix-ld = {
enable = true;
libraries = with pkgs; [
fuse
e2fsprogs
stdenv.cc.cc
zlib
alsa-lib
expat
];
};
};
}