Watch
1
0
Fork
You've already forked chitin
0

Compare commits

...
Author SHA1 Message Date
94d9b40acb
removed atuin, starship, fastfetch config 2026-11-02 23:51:42 +07:00
8ebbf2f3fd
removed nvf
and in turn, removed Neovim. added nanorc
2026-11-02 23:17:48 +07:00
15 changed files with 72 additions and 414 deletions

View file

@ -19,23 +19,24 @@ only KDE Plasma has been set up so far. (TODO: declaratively configure with [pla
* `assets/` - media and binary assets
* `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
* `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
* `packages/` - additional package overlays
* `shells/` - TUI niceties (maybe `devshells` too?)
* `flake/` - infra-related Nix flake logic
## musings
* "why `chitin`? why give your configuration files a name at all?"
* because it's fun. and i wanted to use a distantly related web-like word for it. my affinity for fungi made me randomly one day decide that i'd name it after [chitin](https://en.wikipedia.org/wiki/Chitin), the primary molecule giving strength to mycelium networks.
* "were these written by a coding assista-"
* "did an AI help write-"
* [No](https://www.sheeeeeeeep.art/software-in-current-era.html).
## 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": {
"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": {
"locked": {
"lastModified": 1792905615,
@ -85,21 +69,6 @@
"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": {
"locked": {
"lastModified": 1792898606,
@ -140,28 +109,6 @@
"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": {
"inputs": {
"flake-file": "flake-file",
@ -173,7 +120,6 @@
"nixpkgs-unstable"
],
"nixpkgs-unstable": "nixpkgs-unstable",
"nvf": "nvf",
"xcursor-plan9": "xcursor-plan9"
}
},

View file

@ -14,10 +14,6 @@
nixpkgs.url = "https://channels.nixos.org/nixos-26.05/nixexprs.tar.zst";
nixpkgs-lib.follows = "nixpkgs-unstable";
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 = {
url = "github:wintermute-cell/xcursor-plan9";
flake = false;

View file

@ -1,92 +0,0 @@
{
flake.modules.homeManager.primaryUser = {pkgs, ...}: {
programs.fastfetch = {
enable = true;
settings = {
"$schema" = "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json";
logo = {
type = "small";
padding.top = 4;
padding.left = 3;
padding.right = 4;
};
display.separator = " ";
modules = [
{
key = "╭─────────╮";
type = "custom";
}
{
key = "│ {#31}user {#keys}│";
type = "title";
format = "{user-name}";
}
{
key = "│ {#32}host {#keys}│";
type = "title";
format = "{host-name}";
}
{
key = "│ {#33}uptime {#keys}│";
type = "uptime";
}
{
key = "│ {#34}distro {#keys}│";
type = "os";
}
{
key = "│ {#35}kernel {#keys}│";
type = "kernel";
}
{
key = "│ {#36}desktop {#keys}│";
type = "de";
}
{
key = "│ {#31}term {#keys}│";
type = "terminal";
}
{
key = "│ {#32}shell {#keys}│";
type = "shell";
}
{
key = "│ {#33}cpu {#keys}│";
type = "cpu";
showPeCoreCount = true;
}
{
key = "│ {#34}disk {#keys}│";
type = "disk";
folders = "/";
}
{
key = "│ {#35}memory {#keys}│";
type = "memory";
}
{
key = "│ {#36}network {#keys}│";
type = "localip";
format = "{ipv4} ({ifname})";
}
{
key = "├─────────┤";
type = "custom";
}
{
key = "│ {#39}colors {#keys}│";
type = "colors";
symbol = "circle";
}
{
key = "╰─────────╯";
type = "custom";
}
];
};
};
};
}

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

@ -19,7 +19,6 @@
homeManagerModule
fish
starship
primaryUser
];
};

View file

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

View file

@ -4,6 +4,7 @@
python315
# system utils
file
mc
firmware-updater
mtr
gnupg
@ -15,6 +16,7 @@
plocate
traceroute
rlwrap
wl-clipboard
entr
unzip
ffmpeg

View file

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

View file

@ -0,0 +1,5 @@
{
flake.modules.nixos.base = {pkgs, ...}: {
environment.systemPackages = [pkgs.fastfetch];
};
}

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;
};
};
};
}

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

@ -0,0 +1,46 @@
{
flake.modules.nixos.base = {pkgs, ...}: {
programs.nano = {
enable = true;
package = pkgs.unstable.nano;
syntaxHighlight = true;
nanorc = ''
set atblanks
set autoindent
set casesensitive
set constantshow
set cutfromcursor
set jumpyscrolling
set keycolor normal,normal
set minibar
set minicolor normal,lightblack
set mouse
set newbuffer
set nohelp
set numbercolor italic,lightblack,normal
set stateflags
set smarthome
set softwrap
set tabsize 4
set tabstospaces
set trimblanks
bind M-F nextword main
bind M-B prevword main
unbind ^S main
bind ^S whereis main
bind Sh-M-F findnext main
bind Sh-M-B findprevious main
bind Sh-M-C "{execute}| wl-copy > /dev/null 2>&1 {enter}{undo}" main
bind ^F forward main
bind ^B back main
bind M-< prevbuf main
bind M-> nextbuf main
'';
};
};
}

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
];
};
};
}

View file

@ -1,19 +0,0 @@
{
flake.modules.nixos.starship = {pkgs, ...}: {
programs.starship = {
enable = true;
package = pkgs.unstable.starship;
transientPrompt.enable = true;
settings = {
"$schema" = "https://starship.rs/config-schema.json";
git_status = {
ahead = ">";
behind = "<";
diverged = "<>";
renamed = "r";
deleted = "d";
};
};
};
};
}