From c94275a12d544b9dab8dec66716b984df79e91fa Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Fri, 4 Apr 2025 18:59:02 +0800 Subject: [PATCH] docs: move acknowledgements to the specific code --- README.md | 9 +++------ modules/programs/git.nix | 1 + modules/shell.nix | 1 + 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 05f6bfa..ee56268 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,9 @@ sops updatekeys secrets.yaml # Hardening > [!NOTE] -> Thanks to https://blog.notashelf.dev/posts/2025-03-03-insecurities-remedies-i.html for this section! +> Thanks to +> https://blog.notashelf.dev/posts/2025-03-03-insecurities-remedies-i.html for +> this section! Systemd services where appropriate are hardened using `systemd.services..serviceConfig`: @@ -86,8 +88,3 @@ Systemd services where appropriate are hardened using - https://nixos-and-flakes.thiscute.world/ for teaching me about nix, nixos, flakes, and home-manager in an extremely easy to follow and well-documented fashion -- https://blog.notashelf.dev/posts/2025-02-24-ssh-signing-commits.html for - teaching me how to trivially sign my commits -- https://www.reddit.com/r/NixOS/comments/fsummx/comment/fm3jbcm/ for an easy - way to list all installed packages - (`nix-store --query --requisites /run/current-system | cut -d- -f2- | sort | uniq`) diff --git a/modules/programs/git.nix b/modules/programs/git.nix index 5ac159f..d38ac36 100644 --- a/modules/programs/git.nix +++ b/modules/programs/git.nix @@ -6,6 +6,7 @@ enable = true; userName = "Mohammad Rafiq"; userEmail = "mohammadrafiq567@gmail.com"; + # Thanks to https://blog.notashelf.dev/posts/2025-02-24-ssh-signing-commits.html! signing.key = "~/.ssh/id_ed25519.pub"; signing.signByDefault = true; extraConfig = { diff --git a/modules/shell.nix b/modules/shell.nix index f0fb769..59f9ff7 100644 --- a/modules/shell.nix +++ b/modules/shell.nix @@ -34,6 +34,7 @@ v = "$EDITOR"; g = "git"; l = "eza -1lah --git --time-style '+%Y-%m-%d %H:%M'"; + # Thanks to https://www.reddit.com/r/NixOS/comments/fsummx/comment/fm3jbcm/! list-all-packages = "nix-store --query --requisites /run/current-system | cut -d- -f2- | sort | uniq"; };