Compare commits

...
3 Commits
Author SHA1 Message Date
ahmza 2db9b77272 rename xorg.xrandr to xrandr to fix deprecation warning
the xorg package set is deprecated in nixpkgs 26.05. pkgs.xrandr resolves to the same xrandr-1.5.4 derivation, so hyprland autostart scripts calling xrandr are unaffected.
2026-08-05 21:51:30 +01:00
ahmza 56cf8f875f allow passwordless sudo for ahmza
adds security.sudo.extraRules with NOPASSWD: ALL. the rule is emitted after the default %wheel SETENV rule and sudoers is last-match-wins, so it takes precedence. lives in the shared user module, so it applies to both shadow and t480.
2026-08-05 21:51:26 +01:00
ahmza 0a25820e48 manage global git config declaratively via programs.git.config
moves user identity and init.defaultBranch into /etc/gitconfig instead of stow-managed dotfiles. note: a per-user ~/.gitconfig still overrides these, so identity must stay out of the stow repo to avoid shadowing.
2026-08-05 21:51:22 +01:00
3 changed files with 28 additions and 4 deletions
+15 -3
View File
@@ -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;
+1 -1
View File
@@ -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
+12
View File
@@ -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";