Add NixOS flake starter configuration with Home Manager#1
Open
watanany wants to merge 1 commit into
Open
Conversation
Add a beginner-friendly, modular NixOS configuration under nixos/ with flakes, Home Manager integration, Japanese locale, OpenSSH (root denied), fish + starship + direnv, and common CLI tools (ripgrep, fd, bat, eza, fzf, zoxide, gh, lazygit). System modules are split by concern so users can add a desktop / audio / fonts module without touching existing files. https://claude.ai/code/session_01BWGdkgXga4ZV7CSaNnECxj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a complete, beginner-friendly NixOS flake-based starter configuration with integrated Home Manager. The setup provides a minimal yet functional foundation that can be easily extended with additional features.
Key Changes
flake.nix): Declares inputs (nixpkgs, home-manager, nixos-hardware) and outputs for thenixoshost configuration with proper specialArgs passingnix.nix: Enables flakes, experimental features, auto-optimization, and weekly garbage collectionboot.nix: Configures systemd-boot for UEFI with latest kernelnetworking.nix: Sets up NetworkManager, firewall (SSH only), and OpenSSH with root login disabledlocale.nix: Configures Japanese locale (ja_JP.UTF-8), Asia/Tokyo timezone, jp106 keymap, and fcitx5-mozc IMEpackages.nix: Provides system-wide essential tools (git, vim, ripgrep, fd, etc.)users.nix: Defineswatananyuser with wheel/networkmanager groups and fish shellshell.nix: Fish shell with starship prompt, direnv (nix-direnv), fzf, zoxide, and ezagit.nix: Git configuration with delta diff viewerneovim.nix: Neovim as default editor with vi aliasestmux.nix: Tmux with vi keybindings, C-a prefix, and mouse supportpackages.nix: User-specific CLI tools (bat, jq, gh, lazygit, etc.)hosts/nixos/): Machine-specific settings with placeholder hardware configurationREADME.md): Setup instructions, daily operations, extension guides, and troubleshootingNotable Implementation Details
useGlobalPkgsanduseUserPackagesenablednixos-generate-confighttps://claude.ai/code/session_01BWGdkgXga4ZV7CSaNnECxj