restructured
This commit is contained in:
21
homeManagerModules/git.nix
Normal file
21
homeManagerModules/git.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
programs.git = lib.mkMerge [
|
||||
{
|
||||
enable = true;
|
||||
extraConfig = {
|
||||
credential.helper = "store --file ~/.git-credentials";
|
||||
init.defaultBranch = "main";
|
||||
push.autoSetupRemote = true;
|
||||
};
|
||||
}
|
||||
(lib.mkIf (config.profile == "personal") {
|
||||
userName = "John Lancaster";
|
||||
userEmail = "32917998+jsl12@users.noreply.github.com";
|
||||
})
|
||||
(lib.mkIf (config.profile == "work") {
|
||||
userName = "John Lancaster";
|
||||
userEmail = "john.lancaster@crowncastle.com";
|
||||
})
|
||||
];
|
||||
}
|
||||
30
homeManagerModules/shell.nix
Normal file
30
homeManagerModules/shell.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ config, pkgs, lib, inputs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
eza
|
||||
(writeShellScriptBin "test-pkgs" ''
|
||||
echo "Hello from ~/.config/home-manager/home.nix!"
|
||||
'')
|
||||
];
|
||||
programs.zsh = lib.mkIf config.shell {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
theme = "risto";
|
||||
plugins = [
|
||||
"sudo"
|
||||
"dotenv"
|
||||
"git"
|
||||
"ssh"
|
||||
"ssh-agent"
|
||||
] ++ lib.optional config._1password "1password";
|
||||
};
|
||||
shellAliases.ls = "${pkgs.eza}/bin/eza -lgos type --no-time";
|
||||
# initContent = lib.mkIf config._1password ''
|
||||
# source ${config.home.homeDirectory}/.config/op/plugins.sh
|
||||
# '';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user