Testing git config stuff

This commit is contained in:
2026-01-06 13:14:05 -07:00
parent 3808435e35
commit 73e1de4130
7 changed files with 26 additions and 1200 deletions

View File

@@ -9,7 +9,12 @@
"nix:edit" = "$EDITOR /etc/nixos";
"nix:push" = "cd /etc/nixos && git add -A && git commit -m \"$(date -u +%s)\" && git push";
"nix:pull" = "cd /etc/nixos && git pull";
# Git Config
"git:config:name" = "printf \"Enter Git Name: \"; read -r name; sudo sed -i \"s/gitName = \\\".*\\\";/gitName = \\\"$name\\\";/\" /etc/nixos/settings.nix";
"git:config:email" = "printf \"Enter Git Email: \"; read -r email; sudo sed -i \"s/gitEmail = \\\".*\\\";/gitEmail = \\\"$email\\\";/\" /etc/nixos/settings.nix";
"git:config:key" = "printf \"Enter Git Public Key: \"; read -r key; sudo sed -i \"s|gitKey = \\\".*\\\";|gitKey = \\\"$key\\\";|\" /etc/nixos/settings.nix";
"fixaudio" = "systemctl --user restart pipewire pipewire-pulse wireplumber";
"nf" = "neofetch";
};

View File

@@ -1,10 +1,14 @@
{ config, pkgs, ... }:
let
settings = import ../settings.nix;
in
{
# Enable unfree globally
nixpkgs.config.allowUnfree = true;
environment.variables.BROWSER = "librewolf";
environment.variables.SSH_AUTH_SOCK = "/home/${settings.username}/.bitwarden-ssh-agent.sock";
environment.systemPackages =
with pkgs; [
@@ -14,7 +18,6 @@
librewolf
# Development tools
git
go
cargo
gnumake
@@ -67,4 +70,17 @@
programs.steam.extraPackages = [ pkgs.jdk ];
programs.obs-studio.enable = true;
programs.git = {
enable = true;
config = {
user = {
name = settings.gitName;
email = settings.gitEmail;
signingkey = settings.gitKey;
};
gpg.format = "ssh";
commit.gpgsign = true;
};
};
}