nix/laptop/home-manager.nix

23 lines
658 B
Nix
Raw Normal View History

2023-06-29 14:16:58 +02:00
{ config, pkgs, ... }:
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 = {
/* The home.stateVersion option does not have a default and must be set */
2023-06-29 14:25:10 +02:00
home.stateVersion = "23.05";
2023-06-29 14:16:58 +02:00
/* Here goes the rest of your home-manager config, e.g. home.packages = [ pkgs.foo ]; */
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 = {
config.credential.helper = "cache --timeout=25920000";
};
2023-06-29 14:54:49 +02:00
};
2023-06-29 14:16:58 +02:00
};
}