Archived
Watch
1
0
Fork
You've already forked nixos
0

switch to doas

moved `git` from userspace to global declaration
This commit is contained in:
asnev 2026-07-30 15:58:47 +07:00
commit ba9eeb5a88
Signed by: asnev
SSH key fingerprint: SHA256:8hagYq9hDUuS5clQ78FKhIoQDvg5crdkYMHX+3g7wB4

View file

@ -75,8 +75,16 @@
pipewire.pulse.enable = true;
};
security.rtkit.enable = true;
security.sudo.enable = false;
security.doas.enable = true;
security.doas.extraRules = [{
groups = ["wheel"];
keepEnv = true;
persist = true;
}];
environment.systemPackages = with pkgs; [
nh alejandra literate
nh alejandra literate git
# system utils
firmware-updater mtr gnupg ddate testdisk tree wget btop plocate traceroute
rlwrap entr unzip ffmpeg imagemagick
@ -84,6 +92,7 @@
fd bat xh tlrc dysk dust hyperfine ripgrep fzf eza
];
environment.shellAliases = {
sudo = "doas";
l = "eza --grid --all";
ll = "eza --long --all";
ls = "eza --long";
@ -118,6 +127,16 @@
character.success_symbol = "[λ](bold green)";
character.error_symbol = "[λ](bold red)";
};
git.enable = true;
git.config = {
init.defaultBranch = "main";
advice.defaultBranchName = false;
gpg.format = "ssh";
commit.gpgSign = true;
url."https://github.com/".insteadOf = ["github:"];
};
obs-studio.enableVirtualCamera = true;
ssh.startAgent = true;
nix-ld.enable = true;
@ -327,14 +346,6 @@
'';
};
git.enable = true;
git.settings = {
init.defaultBranch = "main";
advice.defaultBranchName = false;
gpg.format = "ssh";
commit.gpgSign = true;
};
librewolf.enable = true;
librewolf.languagePacks = ["en-GB"];
librewolf.settings = {