Add NixOS home manager config and fix flake warnings

- Add hosts/nixos/home-default.nix with nvim, ssh, and other modules
- Add hosts/nixos/hs/home.nix importing home-default
- Fix nixpkgs.config conflict by moving allowUnfree to system level
- Fix root user password conflicts by explicitly clearing all options
- Add home-manager integration to hs system configuration
- Update hostId from placeholder to actual value (8425e349)
- Add claude-code support for x86_64-linux architecture

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Yan Lin 2025-09-06 23:25:59 +02:00
parent 70485c0bc4
commit aafa5da904
4 changed files with 83 additions and 2 deletions

View file

@ -0,0 +1,45 @@
{ config, pkgs, nixvim, claude-code, ... }:
{
imports = [
nixvim.homeModules.nixvim
../../modules/nvim.nix
../../modules/tmux.nix
../../modules/zsh.nix
../../modules/ssh.nix
../../modules/git.nix
../../modules/lazygit.nix
../../modules/termscp.nix
../../modules/rsync.nix
../../modules/btop.nix
../../config/fonts.nix
];
home.username = "yanlin";
home.homeDirectory = "/home/yanlin";
home.stateVersion = "24.05";
programs.home-manager.enable = true;
home.packages = with pkgs; [
# Network and file transfer
lftp
httpie
openssh
gnumake
# Command-line utilities
ncdu
git-credential-oauth
zoxide
delta
fastfetch
# Development and build tools
python312
uv
claude-code.packages.x86_64-linux.claude-code
lazysql
sqlite
];
}