{ 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") ]; home-manager.users.albert = { /* 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 ]; */ programs.git = { enable = true; userName = "albert"; userEmail = "albert@sysctl.io"; extraConfig = { credential.helper = "cache --timeout=25920000"; }; }; }; home-manager.users.root = { /* 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 ]; */ programs.git = { enable = true; userName = "albert"; userEmail = "albert@sysctl.io"; extraConfig = { credential.helper = "cache --timeout=25920000"; }; }; }; }