2023-06-29 21:16:58 +09:00
|
|
|
{ config, pkgs, ... }:
|
2023-06-30 11:39:01 +09:00
|
|
|
# Home-Manager Manual
|
|
|
|
# https://nix-community.github.io/home-manager/index.html
|
|
|
|
|
|
|
|
# Home-Manager Options Search
|
|
|
|
# https://mipmip.github.io/home-manager-option-search/
|
2023-06-29 21:16:58 +09:00
|
|
|
let
|
2023-06-29 21:43:03 +09:00
|
|
|
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz";
|
2023-06-29 21:16:58 +09:00
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
(import "${home-manager}/nixos")
|
|
|
|
];
|
|
|
|
|
|
|
|
home-manager.users.albert = {
|
2023-06-29 21:25:10 +09:00
|
|
|
home.stateVersion = "23.05";
|
2023-06-30 07:56:45 +09:00
|
|
|
# User Home-Manager config location
|
2023-06-29 21:54:49 +09:00
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "albert";
|
|
|
|
userEmail = "albert@sysctl.io";
|
2023-06-29 22:00:34 +09:00
|
|
|
extraConfig = {
|
2023-06-29 22:06:04 +09:00
|
|
|
credential.helper = "cache --timeout=25920000";
|
2023-06-29 22:00:34 +09:00
|
|
|
};
|
2023-06-30 17:33:18 +09:00
|
|
|
};
|
2023-06-30 08:13:12 +09:00
|
|
|
|
2023-06-30 11:39:01 +09:00
|
|
|
# dconf settings:
|
|
|
|
# https://github.com/gvolpe/dconf2nix
|
|
|
|
|
2023-06-29 21:16:58 +09:00
|
|
|
};
|
2023-06-29 22:02:12 +09:00
|
|
|
|
|
|
|
home-manager.users.root = {
|
2023-06-30 17:33:18 +09:00
|
|
|
home.stateVersion = "23.05";
|
2023-06-30 07:56:45 +09:00
|
|
|
# User Home-Manager config location
|
2023-06-30 17:33:18 +09:00
|
|
|
programs.git = {
|
2023-06-29 22:02:12 +09:00
|
|
|
enable = true;
|
|
|
|
userName = "albert";
|
|
|
|
userEmail = "albert@sysctl.io";
|
|
|
|
extraConfig = {
|
2023-06-29 22:05:48 +09:00
|
|
|
credential.helper = "cache --timeout=25920000";
|
2023-06-29 22:02:12 +09:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|