Charles: Make build

Also add git config and remove ssh config
This commit is contained in:
Payas Relekar 2023-10-25 14:51:17 +05:30
parent e8cbd5b45b
commit 7077000bc2
2 changed files with 50 additions and 10 deletions

View file

@ -36,7 +36,6 @@
./modules/common.nix
./modules/fish.nix
];
darwinpkgs = nixpkgs.legacyPacakges."x86_64-darwin";
in
{
overlay = final: prev: {
@ -44,8 +43,10 @@
pihole pihole-ftl pihole-adminlte;
};
homeConfigurations."payas" = home-manager.lib.homeManagerConfiguration {
inherit darwinpkgs;
homeConfigurations."payasrelekar" = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {
system = "x86_64-darwin";
};
modules = [ ./hosts/charles/home.nix ];
# Optionally use extraSpecialArgs

View file

@ -5,17 +5,31 @@
../../modules/neovim/nvim.nix
];
home.packages = with pkgs; [
# security
keepassxc # password management
rage
# Home Manager needs a bit of information about you and the paths it should
# manage.
home.username = "payasrelekar";
home.homeDirectory = "/Users/payasrelekar";
libreoffice # thoroughly average grown up stuff
];
# This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release
# introduces backwards incompatible changes.
#
# You should not change this value, even if you update Home Manager. If you do
# want to update the value, then make sure to first check the Home Manager
# release notes.
home.stateVersion = "23.05"; # Please read the comment before changing.
home = {
packages = with pkgs; [
rage
];
};
programs = {
home-manager.enable = true;
ssh = {
enable = true;
enable = false;
matchBlocks = {
"ssh.bhankas.org" = {
user = "gitea";
@ -25,5 +39,30 @@
};
};
};
git = {
enable = true;
aliases = {
br = "branch";
co = "checkout";
# last 5 commits in shortlog-style, with colors
last = "log -5 --abbrev-commit --pretty=format:\"%C(cyan)%h%Creset %C(yellow bold)%d%C(reset) %s %Cgreenby %an %cr%Creset\" HEAD";
# all history, in shortlog-style, with colors (short for colorlog)
cl = "log --abbrev-commit --pretty=format:\"%C(cyan)%h%Creset %C(yellow bold)%d%C(reset) %s %Cgreenby %an %cr%Creset\" HEAD";
};
userEmail = "payas.relekar@fplabs.tech";
userName = "Payas Relekar";
extraConfig = {
core = {
editor = "nvim";
};
merge = {
conflictstyle = "zdiff3";
};
rerere = {
enable = true;
autoUpdate = true;
};
};
};
};
}