{"id":15930523,"url":"https://github.com/rjected/nix-configs","last_synced_at":"2026-02-25T06:03:49.650Z","repository":{"id":49591264,"uuid":"289402359","full_name":"Rjected/nix-configs","owner":"Rjected","description":"NixOS flakes and other configuration files for my systems.","archived":false,"fork":false,"pushed_at":"2024-04-09T15:37:22.000Z","size":97,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-09T04:50:37.420Z","etag":null,"topics":["nix","nixos"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rjected.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-08-22T02:12:00.000Z","updated_at":"2024-04-09T15:37:26.000Z","dependencies_parsed_at":"2024-03-09T22:38:32.938Z","dependency_job_id":null,"html_url":"https://github.com/Rjected/nix-configs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rjected%2Fnix-configs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rjected%2Fnix-configs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rjected%2Fnix-configs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rjected%2Fnix-configs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rjected","download_url":"https://codeload.github.com/Rjected/nix-configs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240848996,"owners_count":19867616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nix","nixos"],"created_at":"2024-10-07T00:42:23.705Z","updated_at":"2025-10-26T16:39:42.687Z","avatar_url":"https://github.com/Rjected.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nix-configs\n\nThese are my nix configs for trying out NixOS.\nI'm using NixOS so that I can easily manage my operating system configuration, which is more and more\ndifficult as I get new computers and use more of them. I often keep coming back to my laptop\nconfiguration, which I have put too much work into configuring, and I'm sure many of the steps in that\nprocess have been lost.\nSo far, NixOS and Nix have solved all of my problems with configuring the linux desktop.\nI'm backing up my configuration on GitHub and documenting for myself how to replicate this\nconfiguration across my devices.\n\n## How to set up on a new device\nFirst, make sure wifi is set up, and the basic first user is set up.\nThis could all be done in a TTY.\nNow, make sure to move to unstable channels and add home-manager\n```sh\nsudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos\nsudo nix-channel --add https://github.com/rycee/home-manager/archive/master.tar.gz home-manager\nsudo nix-channel --update\n```\n\nMake sure git is not globally installed, so use `nix-env --uninstall git` if you need to.\nNext, run a new `nix-shell -p git` and clone this repo into `~/Projects/`.\nNavigate to `~/Projects/nix-configs/nixos/` and build the flake for the device desired:\n```sh\nsudo nixos-rebuild switch --flake '.#desired-device-here'\n```\nCurrently, the devices available are `dan-nixos-sff` and `dan-nixos-laptop`.\nThen, run `sudo nixos-rebuild switch` and `home-manager switch`.\n\n### i3 Config options\nJust because this info is kind of annoying to find, [here are all the options for i3](https://github.com/rycee/home-manager/blob/master/modules/services/window-managers/i3-sway/lib/options.nix), and\n[here are all the default config options](https://github.com/rycee/home-manager/blob/master/modules/services/window-managers/i3-sway/i3.nix).\n\n### Cheat sheet\nIn order to update packages for the OS (not managed by home-manager), do the following:\n```\nsudo nixos-rebuild --upgrade switch\n```\nIn order to update packages managed by home-manager, do the\nfollowing:\n```\nnix-channel --update\nhome-manager switch\n```\n\n### That rust.nix file in the root of the repo\nI have not figured out enough nix to figure out what to do with this, but it's what I use whenever I am working with rust.\nI place it in `~/Projects/` and do `nix-shell rust.nix`, then navigate to the project I want to work on.\n\n## Kanagawa Theme Configuration\n\nThe Kanagawa theme is used throughout the environment for a cohesive look. It includes three variants:\n- **Lotus** (light theme): Warm off-white backgrounds with earthy tones\n- **Wave** (default dark): Deep ink-like backgrounds with ocean-inspired colors  \n- **Dragon** (darker variant): Even deeper backgrounds for low-light environments\n\n### Neovim Kanagawa Configuration\n\nThe Neovim setup includes custom airline themes that match the Kanagawa colorscheme.\n\n#### Theme Files\n- Airline themes: `nixpkgs/nvim/autoload/airline/themes/kanagawa_{lotus,wave,dragon}.vim`\n- Auto-sync with colorscheme: Airline theme automatically changes when switching colorschemes\n- Deferred loading fix: Ensures airline is fully loaded before applying theme\n\n#### Keybindings\n- `\u003cleader\u003ekt` - Cycle through all three Kanagawa themes\n- `\u003cleader\u003ekl` - Switch to Kanagawa Lotus (light)\n- `\u003cleader\u003ekw` - Switch to Kanagawa Wave (dark)\n- `\u003cleader\u003ekd` - Switch to Kanagawa Dragon (darker)\n\n#### Configuration Locations\n- Main colorscheme setting: `nixpkgs/nvim/init.lua` (line 274)\n- Airline theme config: `nixpkgs/nvim/lua/config/autocmds.lua` (line 134)\n- Theme sync autocmd: `nixpkgs/nvim/lua/config/autocmds.lua` (lines 179-198)\n- Deferred loading: `nixpkgs/nvim/lua/config/plugins.lua` (lines 177-196)\n- Theme switcher: `nixpkgs/nvim/lua/config/keymaps.lua` (lines 143-165)\n\n### Tmux Kanagawa Configuration\n\nThree tmux theme files are available in `~/projects/claude-workspaces/`:\n\n#### Kanagawa Lotus (Light) - `kanagawa-lotus-tmux.conf`\n```bash\n# Main colors\ntmux_conf_theme_colour_1='#545464'    # lotusInk1 - dark gray (main foreground)\ntmux_conf_theme_colour_2='#f2ecbc'    # lotusWhite3 - main background\ntmux_conf_theme_colour_3='#716e61'    # lotusGray2 - medium gray\ntmux_conf_theme_colour_4='#4d699b'    # lotusBlue4 - medium blue\ntmux_conf_theme_colour_5='#77713f'    # lotusYellow - dark yellow\n\n# Status line\ntmux_conf_theme_status_bg='#e5ddb0'   # lotusWhite2\ntmux_conf_theme_status_fg='#545464'   # lotusInk1\n\n# Battery colors with good contrast\ntmux_conf_battery_bar_palette='#6f894e,#8a8980,#e5ddb0'\n```\n\n#### Kanagawa Wave (Dark) - `kanagawa-wave-tmux.conf`\n```bash\n# Main colors\ntmux_conf_theme_colour_1='#16161D'    # sumiInk0 - darkest background\ntmux_conf_theme_colour_2='#1F1F28'    # sumiInk3 - default background\ntmux_conf_theme_colour_3='#54546D'    # sumiInk6 - dim foreground\ntmux_conf_theme_colour_4='#7E9CD8'    # crystalBlue - functions\ntmux_conf_theme_colour_5='#E6C384'    # carpYellow - identifiers\n\n# Status line\ntmux_conf_theme_status_bg='#1F1F28'   # sumiInk3\ntmux_conf_theme_status_fg='#DCD7BA'   # fujiWhite\n\n# Battery colors\ntmux_conf_battery_bar_palette='#98BB6C,#E6C384,#D27E99'\n```\n\n#### Kanagawa Dragon (Darker) - `kanagawa-dragon-tmux.conf`\n```bash\n# Main colors\ntmux_conf_theme_colour_1='#0d0c0c'    # dragonBlack0 - darkest background\ntmux_conf_theme_colour_2='#181616'    # dragonBlack3 - default background\ntmux_conf_theme_colour_3='#625e5a'    # dragonBlack6 - lightest bg/dark gray\ntmux_conf_theme_colour_4='#8ba4b0'    # dragonBlue2 - functions\ntmux_conf_theme_colour_5='#c4b28a'    # dragonYellow - identifiers\n\n# Status line\ntmux_conf_theme_status_bg='#181616'   # dragonBlack3\ntmux_conf_theme_status_fg='#c5c9c5'   # dragonWhite\n\n# Battery colors\ntmux_conf_battery_bar_palette='#87a987,#c4b28a,#a292a3'\n```\n\n#### Using Tmux Themes\nTo use a theme, source it in your `~/.tmux.conf.local`:\n```bash\n# For Lotus (light) theme\nsource-file ~/projects/claude-workspaces/kanagawa-lotus-tmux.conf\n\n# For Wave (default dark) theme\nsource-file ~/projects/claude-workspaces/kanagawa-wave-tmux.conf\n\n# For Dragon (darker) theme\nsource-file ~/projects/claude-workspaces/kanagawa-dragon-tmux.conf\n```\n\nThen reload tmux configuration with `\u003cprefix\u003er` or:\n```bash\ntmux source-file ~/.tmux.conf\n```\n\n### Color Palette Reference\n\nThe Kanagawa theme is inspired by the famous painting \"The Great Wave off Kanagawa\" by Katsushika Hokusai. Each variant has distinct characteristics:\n\n- **Lotus**: Paper-like warm whites, earthy greens, subtle blues - ideal for bright environments\n- **Wave**: Deep ink blacks, ocean blues, foam whites - balanced for extended use\n- **Dragon**: Even darker blacks, muted colors, lower contrast - perfect for late night coding\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjected%2Fnix-configs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frjected%2Fnix-configs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjected%2Fnix-configs/lists"}