Start using home-manager

This commit is contained in:
Artemis Tosini 2021-01-10 07:02:31 +00:00
parent 7fb60a28eb
commit 2d922f85ef
Signed by: artemist
GPG key ID: ADFFE553DCBB831E
5 changed files with 49 additions and 2 deletions

5
.gitmodules vendored
View file

@ -1,6 +1,9 @@
[submodule "private"] [submodule "private"]
path = private path = private
url = git@github.com:artemist/nixos-config-private.git url = git@github.com:artemist/nixos-config-private
[submodule "externals/wip-pinebook-pro"] [submodule "externals/wip-pinebook-pro"]
path = externals/wip-pinebook-pro path = externals/wip-pinebook-pro
url = https://github.com/samueldr/wip-pinebook-pro url = https://github.com/samueldr/wip-pinebook-pro
[submodule "externals/home-manager"]
path = externals/home-manager
url = https://github.com/nix-community/home-manager

1
externals/home-manager vendored Submodule

@ -0,0 +1 @@
Subproject commit e8358125d98fc0128a02b7664f532447750fb930

42
home/default.nix Normal file
View file

@ -0,0 +1,42 @@
{ ... }:
{
imports = [ ../externals/home-manager/nixos ];
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
};
home-manager.users.artemis = { pkgs, ... }: {
programs.git = {
enable = true;
package = pkgs.gitAndTools.gitFull;
userName = "Artemis Tosini";
userEmail = "me@artem.ist";
signing = {
key = "D2173817C3E4B155EA8FFF49A54531E0D32143ED";
signByDefault = true;
};
ignores = [ "compile_commands.json" ".clangd/" ".idea/" ];
lfs.enable = true;
delta.enable = true;
extraConfig = {
transfer.fsckObjects = true;
advice.detachedHead = false;
format.signOff = true;
init.defaultBranch = "canon";
log.showSignature = true;
mailmap.file = "${../private/mailmap}";
credential.helper = "!${pkgs.gitAndTools.pass-git-helper}/bin/pass-git-helper $@";
sendemail = {
smtpServer = "smtp.fastmail.com";
smtpUser = "me@artem.ist";
smtpEncryption = "tls";
smtpServerPort = 587;
confirm = "auto";
};
};
};
};
}

@ -1 +1 @@
Subproject commit 9b96cbfe57bdfd8a090571173cac06b948b1e680 Subproject commit f8df70e380f267b3a118677bbc0d404b510222cb

View file

@ -6,6 +6,7 @@
./packages.nix ./packages.nix
./pipewire.nix ./pipewire.nix
./neovim ./neovim
../home
]; ];
i18n.defaultLocale = "de_DE.UTF-8"; i18n.defaultLocale = "de_DE.UTF-8";