Compare commits
3
Commits
9ded51c865
...
2db9b77272
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2db9b77272 | ||
|
|
56cf8f875f | ||
|
|
0a25820e48 |
@@ -1,11 +1,23 @@
|
||||
{...}: {
|
||||
# git user config (~/.config/git or ~/.gitconfig) is managed via stow.
|
||||
# We only install git + related tooling and enable the gpg agent.
|
||||
# Global git config lives in /etc/gitconfig via programs.git.config.
|
||||
# Note: a per-user ~/.gitconfig (or ~/.config/git/config) overrides these,
|
||||
# so keep identity out of the stow dotfiles to avoid shadowing this.
|
||||
flake.nixosModules.git = {pkgs, ...}: {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
config = {
|
||||
user = {
|
||||
name = "ahmza";
|
||||
email = "hamza@ahmza.com";
|
||||
};
|
||||
init.defaultBranch = "main";
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
git-secret
|
||||
];
|
||||
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
pinentryPackage = pkgs.pinentry-all;
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
# scripting deps for bin/ helpers (swp uses jq + hyprctl)
|
||||
jq
|
||||
# display / applets referenced by autostart
|
||||
xorg.xrandr
|
||||
xrandr
|
||||
networkmanagerapplet
|
||||
blueman
|
||||
udiskie
|
||||
|
||||
@@ -16,6 +16,18 @@
|
||||
# repoPath defaults to /home/ahmza/dot
|
||||
};
|
||||
|
||||
security.sudo.extraRules = [
|
||||
{
|
||||
users = ["ahmza"];
|
||||
commands = [
|
||||
{
|
||||
command = "ALL";
|
||||
options = ["NOPASSWD"];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
users.users.ahmza = {
|
||||
isNormalUser = true;
|
||||
initialPassword = "qwer";
|
||||
|
||||
Reference in New Issue
Block a user