Start using home-manager
This commit is contained in:
parent
7fb60a28eb
commit
2d922f85ef
5
.gitmodules
vendored
5
.gitmodules
vendored
|
@ -1,6 +1,9 @@
|
|||
[submodule "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"]
|
||||
path = externals/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
1
externals/home-manager
vendored
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit e8358125d98fc0128a02b7664f532447750fb930
|
42
home/default.nix
Normal file
42
home/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
2
private
2
private
|
@ -1 +1 @@
|
|||
Subproject commit 9b96cbfe57bdfd8a090571173cac06b948b1e680
|
||||
Subproject commit f8df70e380f267b3a118677bbc0d404b510222cb
|
|
@ -6,6 +6,7 @@
|
|||
./packages.nix
|
||||
./pipewire.nix
|
||||
./neovim
|
||||
../home
|
||||
];
|
||||
|
||||
i18n.defaultLocale = "de_DE.UTF-8";
|
||||
|
|
Loading…
Reference in a new issue