nix/laptop/home-manager.nix

44 lines
1 KiB
Nix
Raw Normal View History

2023-06-29 14:16:58 +02:00
{ config, pkgs, ... }:
2023-06-30 04:39:01 +02: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 14:16:58 +02:00
let
2023-06-29 14:43:03 +02:00
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz";
2023-06-29 14:16:58 +02:00
in
{
imports = [
(import "${home-manager}/nixos")
];
home-manager.users.albert = {
2023-06-29 14:25:10 +02:00
home.stateVersion = "23.05";
2023-06-30 00:56:45 +02:00
# User Home-Manager config location
2023-06-29 14:54:49 +02:00
programs.git = {
enable = true;
userName = "albert";
userEmail = "albert@sysctl.io";
2023-06-29 15:00:34 +02:00
extraConfig = {
2023-06-29 15:06:04 +02:00
credential.helper = "cache --timeout=25920000";
2023-06-29 15:00:34 +02:00
};
2023-06-30 01:13:12 +02:00
2023-06-30 04:39:01 +02:00
# dconf settings:
# https://github.com/gvolpe/dconf2nix
2023-06-29 14:16:58 +02:00
};
2023-06-29 15:02:12 +02:00
home-manager.users.root = {
home.stateVersion = "23.05";
2023-06-30 00:56:45 +02:00
# User Home-Manager config location
2023-06-29 15:02:12 +02:00
programs.git = {
enable = true;
userName = "albert";
userEmail = "albert@sysctl.io";
extraConfig = {
2023-06-29 15:05:48 +02:00
credential.helper = "cache --timeout=25920000";
2023-06-29 15:02:12 +02:00
};
};
};
}