{ config, pkgs, ... }: let home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz"; in { imports = [ (import "${home-manager}/nixos") ./code.nix ]; home-manager.users.gunalx = { /* The home.stateVersion option does not have a default and must be set */ home.stateVersion = "23.05"; /* Here goes the rest of your home-manager config, e.g. home.packages = [ pkgs.foo ]; */ }; }