nix/laptop/home-manager.nix
2023-06-30 07:56:45 +09:00

35 lines
833 B
Nix

{ 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 = {
home.stateVersion = "23.05";
# User Home-Manager config location
programs.git = {
enable = true;
userName = "albert";
userEmail = "albert@sysctl.io";
extraConfig = {
credential.helper = "cache --timeout=25920000";
};
};
};
home-manager.users.root = {
home.stateVersion = "23.05";
# User Home-Manager config location
programs.git = {
enable = true;
userName = "albert";
userEmail = "albert@sysctl.io";
extraConfig = {
credential.helper = "cache --timeout=25920000";
};
};
};
}