nixos-config/modules/home-config.nix

73 lines
1.6 KiB
Nix
Raw Normal View History

2023-04-14 23:51:52 +03:00
# Inject the right home-manager config for the machine.
{ config, pkgs, lib, ... }:
2023-04-14 23:51:52 +03:00
# TODO can we automate the installation of home-manager ?
# sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.11.tar.gz home-manager
2023-04-14 23:51:52 +03:00
{
imports = [
<home-manager/nixos>
];
# Let Home Manager install and manage itself.
#programs.home-manager.enable = true;
home-manager.users.mrflos = { pkgs, ... }: {
home.stateVersion = "22.11";
accounts.email.accounts = {
"mrflos@chmok.net" = {
realName = "Florian Schmitt";
userName = "mrflos@chmok.net";
address = "mrflos@chmok.net";
primary = true;
thunderbird = {
enable = true;
};
imap = {
host = "mail.gandi.net";
port = 143;
tls.useStartTls = true;
};
smtp = {
host = "mail.gandi.net";
port = 587;
tls.useStartTls = true;
};
};
};
# programs.git = {
# enable = true;
# userName = "Florian Schmitt";
# userEmail = "mrflos@gmail.com";
# extraConfig = {
# pull.rebase = true;
# init.defaultBranch = "main";
# };
# };
programs.thunderbird = {
enable = true;
profiles.default = {
isDefault = true;
};
};
};
users.users.mrflos = {
2023-04-14 23:51:52 +03:00
isNormalUser = true;
description = "mrflos";
2023-04-14 23:51:52 +03:00
createHome = true;
extraGroups = [ "docker" "libvirtd" "lxd" "networkmanager" "wheel" ];
2023-04-14 23:51:52 +03:00
uid = 1000;
shell = pkgs.zsh;
2023-04-14 23:51:52 +03:00
};
nix.settings.trusted-users = [ "mrflos" ];
2023-04-14 23:51:52 +03:00
home-manager.useGlobalPkgs = true;
}