nix/laptop/home-manager.nix
2023-06-30 11:39:01 +09:00

43 lines
1 KiB
Nix

{ config, pkgs, ... }:
# Home-Manager Manual
# https://nix-community.github.io/home-manager/index.html
# Home-Manager Options Search
# https://mipmip.github.io/home-manager-option-search/
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";
};
# dconf settings:
# https://github.com/gvolpe/dconf2nix
};
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";
};
};
};
}