add programs directory
This commit is contained in:
parent
41091c4958
commit
a87c9565a7
3 changed files with 34 additions and 25 deletions
26
common.nix
26
common.nix
|
@ -9,6 +9,7 @@
|
||||||
username = "leo";
|
username = "leo";
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
|
./programs
|
||||||
(lib.mkAliasOptionModule ["hm"] ["home-manager" "users" username])
|
(lib.mkAliasOptionModule ["hm"] ["home-manager" "users" username])
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -157,27 +158,6 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
# wayland.windowManager.hyprland.enable = true;
|
# 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 = {
|
programs = {
|
||||||
|
@ -190,10 +170,6 @@ in {
|
||||||
|
|
||||||
hyprland.enable = true;
|
hyprland.enable = true;
|
||||||
|
|
||||||
git = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
gnupg.agent = {
|
gnupg.agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
|
|
7
programs/default.nix
Normal file
7
programs/default.nix
Normal 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
26
programs/git.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue