NixOS + home-manager configs, mirrored from GitLab SaaS. gitlab.com/andreijiroh-dev/nixops-config
nix-flake nixos home-manager nixpkgs nix-flakes
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(home-manager): update Git config regarding SSH-based commit signing

To make commits show as verified on Tangled and friends instead of GnuPG,
which actually simplify setup on fresh installs in the future.

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>

+9 -7
+2
shared/home-manager/desktop.nix
··· 31 31 _1password-gui 32 32 ]; 33 33 }; 34 + 35 + programs.git.signer = "${pkgs._1password-gui}/share/1password/op-ssh-sign"; 34 36 }
+7 -7
shared/home-manager/git.nix
··· 1 - { config, lib, pkgs, ... }: 1 + { 2 + config, 3 + lib, 4 + pkgs, 5 + ... 6 + }: 2 7 3 8 # Reference: https://mynixos.com/home-manager/options/programs.git and 4 9 # https://nix-community.github.io/home-manager/options.xhtml#opt-programs.git.enable 5 10 # (look for programs.git prefix) 6 11 { 7 - programs.git = { 12 + programs.git = { 8 13 enable = true; 9 14 package = pkgs.gitFull; 10 15 lfs = { ··· 31 36 key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEXuD3hJwInlcHs3wkXWAWNo8es3bPAd2e8ipjyqgGp2 @ajhalili2006's SSH key, circa 2022"; 32 37 signByDefault = true; 33 38 format = "ssh"; 34 - signer = lib.mkIf ( 35 - (config.services.desktopManager.plasma6.enable or false) || 36 - (config.services.xserver.desktopManager.plasma5.enable or false) 37 - ) "${pkgs._1password-gui}/share/1password/op-ssh-sign"; 38 39 }; 39 40 settings = { 40 41 user = { 41 42 name = "Andrei Jiroh Halili"; 42 43 email = "ajhalili2006@andreijiroh.dev"; 43 44 }; 44 - 45 45 alias = { 46 46 signoff = "commit --signoff"; 47 47 amend = "commit -a --amend";