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