diff --git a/.gitmodules b/.gitmodules index 9c17330..f1c5ae5 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/externals/home-manager b/externals/home-manager new file mode 160000 index 0000000..e835812 --- /dev/null +++ b/externals/home-manager @@ -0,0 +1 @@ +Subproject commit e8358125d98fc0128a02b7664f532447750fb930 diff --git a/home/default.nix b/home/default.nix new file mode 100644 index 0000000..d494aa4 --- /dev/null +++ b/home/default.nix @@ -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"; + }; + }; + }; + }; +} diff --git a/private b/private index 9b96cbf..f8df70e 160000 --- a/private +++ b/private @@ -1 +1 @@ -Subproject commit 9b96cbfe57bdfd8a090571173cac06b948b1e680 +Subproject commit f8df70e380f267b3a118677bbc0d404b510222cb diff --git a/sets/workstation.nix b/sets/workstation.nix index 8236d14..bbcf210 100644 --- a/sets/workstation.nix +++ b/sets/workstation.nix @@ -6,6 +6,7 @@ ./packages.nix ./pipewire.nix ./neovim + ../home ]; i18n.defaultLocale = "de_DE.UTF-8";