No description
Find a file
Leo 7c37492c69 Use Home Manager as a NixOS module
Replace the standalone homeConfigurations output with the Home Manager
NixOS module, so a single nixos-rebuild applies both the system and the
user configuration.

- flake.nix: import home-manager.nixosModules.home-manager, set
  home-manager.users.leo, drop the now-unused pkgs let-binding
  (allowUnfree comes from configuration.nix via useGlobalPkgs)
- home.nix: drop home.username/homeDirectory and
  programs.home-manager.enable, all provided by the module
- README.md: remove the separate install and home-manager switch steps

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FStCxmGBXQUWjgN2xMSvjU
2026-07-28 10:53:06 +03:00
configuration.nix Update from nixos 24.05 to 26.05 2026-07-27 23:06:00 +03:00
flake.lock Update flake.lock 2026-07-28 02:57:15 +03:00
flake.nix Use Home Manager as a NixOS module 2026-07-28 10:53:06 +03:00
home.nix Use Home Manager as a NixOS module 2026-07-28 10:53:06 +03:00
README.md Use Home Manager as a NixOS module 2026-07-28 10:53:06 +03:00

My NixOS configuration

Running on a new machine

  1. Install NixOS
  2. Generate configuration files by running nixos-generate-config
  3. Add git to configuration.nix's environment.systemPackages
  4. Add flakes support by appending nix.settings.experimental-features = ["nix-command" "flakes"];
  5. Rebuild nixos-rebuild switch
  6. Clone this repo to your destination of choice (I go with ~/.dotfiles for the time being)
  7. Switch to the current version nixos-rebuild switch --flake . --impure (Impure, because we do not provide hardware configuration, since it is machine dependant)

Home Manager is included as a NixOS module, so nixos-rebuild applies both the system and the user configuration. There is no separate home-manager switch step, and no home-manager channel is needed.