aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--homes/floppydisk/default.nix3
-rw-r--r--homes/floppydisk/git.nix17
-rw-r--r--homes/floppydisk/ssh.nix8
3 files changed, 25 insertions, 3 deletions
diff --git a/homes/floppydisk/default.nix b/homes/floppydisk/default.nix
index 345e17c..766f18b 100644
--- a/homes/floppydisk/default.nix
+++ b/homes/floppydisk/default.nix
@@ -1,12 +1,13 @@
{
pkgs,
lib,
- inputs,
...
}: {
imports = [
./packages.nix # home.packages and similar stuff
./neovim-flake.nix
+ ./ssh.nix
+ ./git.nix
];
home = {
diff --git a/homes/floppydisk/git.nix b/homes/floppydisk/git.nix
new file mode 100644
index 0000000..d6558fd
--- /dev/null
+++ b/homes/floppydisk/git.nix
@@ -0,0 +1,17 @@
+{
+ nixosConfig,
+ lib,
+ pkgs,
+ ...
+}: {
+ programs.git = {
+ extraConfig = {
+ init.defaultBranch = "master";
+ gpg.format = "ssh";
+ gpg."ssh".program = "${pkgs._1password-gui}/bin/op-ssh-sign";
+ commit.gpgsign = true;
+ user.signingkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDcwriIE5K8SVewvVdgNvmhtAVvJPtMnNkkS4ETi5YgJ";
+ push.autoSetupRemote = true;
+ };
+ };
+}
diff --git a/homes/floppydisk/ssh.nix b/homes/floppydisk/ssh.nix
index 99e77c5..e59d218 100644
--- a/homes/floppydisk/ssh.nix
+++ b/homes/floppydisk/ssh.nix
@@ -12,6 +12,10 @@ in {
programs.ssh = {
enable = true;
forwardAgent = _1passwordAgent.enable;
- extraConfig = lib.optionalString _1passwordAgent.enable "IdentityAgent ${_1passwordAgent.path}";
+ extraConfig = ''
+ Host *
+ IdentityAgent ~/.1password/agent.sock
+ '';
};
-} \ No newline at end of file
+}
+