add programs directory

This commit is contained in:
uku 2023-11-13 17:16:46 +01:00
parent 41091c4958
commit a87c9565a7
Signed by: uku
GPG key ID: 7D01D7B105E77166
3 changed files with 34 additions and 25 deletions

View file

@ -9,6 +9,7 @@
username = "leo";
in {
imports = [
./programs
(lib.mkAliasOptionModule ["hm"] ["home-manager" "users" username])
];
@ -157,27 +158,6 @@ in {
};
# wayland.windowManager.hyprland.enable = true;
programs.git = {
enable = true;
userName = "uku";
userEmail = "uku3lig@gmail.com";
signing = {
key = "0D2F5CFF394C558D4F1C58937D01D7B105E77166";
signByDefault = true;
};
extraConfig = {
core.autocrlf = "input";
push.autoSetupRemote = true;
};
};
programs.gh = {
enable = true;
settings.git_protocol = "ssh";
};
};
programs = {
@ -190,10 +170,6 @@ in {
hyprland.enable = true;
git = {
enable = true;
};
gnupg.agent = {
enable = true;
enableSSHSupport = true;

7
programs/default.nix Normal file
View file

@ -0,0 +1,7 @@
{lib, ...}: {
imports = lib.pipe ./. [
builtins.readDir
(lib.filterAttrs (n: _: n != "default.nix"))
(lib.mapAttrsToList (n: _: ./${n}))
];
}

26
programs/git.nix Normal file
View file

@ -0,0 +1,26 @@
{
programs.git.enable = true;
hm.programs = {
git = {
enable = true;
userName = "uku";
userEmail = "uku3lig@gmail.com";
signing = {
key = "0D2F5CFF394C558D4F1C58937D01D7B105E77166";
signByDefault = true;
};
extraConfig = {
core.autocrlf = "input";
push.autoSetupRemote = true;
};
};
gh = {
enable = true;
settings.git_protocol = "ssh";
};
};
}