abstract gpg

This commit is contained in:
Daylin Morgan 2024-01-29 10:43:35 -06:00
parent 275b5ca82a
commit b75cef08ef
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
6 changed files with 15 additions and 21 deletions

View file

@ -2,7 +2,7 @@
inputs, inputs,
pkgs, pkgs,
... ...
}:{ }: {
imports = with inputs.self.nixosModules; [ imports = with inputs.self.nixosModules; [
docker docker
]; ];
@ -18,7 +18,7 @@
(pkgs.writeShellScriptBin "gitea" '' (pkgs.writeShellScriptBin "gitea" ''
ssh -p 2222 -o StrictHostKeyChecking=no git@127.0.0.1 "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@" ssh -p 2222 -o StrictHostKeyChecking=no git@127.0.0.1 "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"
'') '')
]; ];
# https://francis.begyn.be/blog/nixos-restic-backups # https://francis.begyn.be/blog/nixos-restic-backups
@ -42,9 +42,4 @@
isNormalUser = true; isNormalUser = true;
}; };
}; };
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
} }

View file

@ -19,8 +19,4 @@
}; };
users.users.daylin.extraGroups = ["docker"]; users.users.daylin.extraGroups = ["docker"];
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
} }

View file

@ -25,6 +25,7 @@
rclone rclone
quarto quarto
]; ];
programs.hyprland.enable = true; programs.hyprland.enable = true;
services.vpn.enable = true; services.vpn.enable = true;
@ -36,11 +37,6 @@
paths = ["/home/daylin/stuff/" "/home/daylin/dev/"]; paths = ["/home/daylin/stuff/" "/home/daylin/dev/"];
}; };
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
users.users.daylin.extraGroups = [ users.users.daylin.extraGroups = [
"audio" "audio"
]; ];

View file

@ -10,6 +10,7 @@
dev dev
nvim nvim
vpn vpn
gpg
# gui # gui
fonts fonts

View file

@ -8,9 +8,9 @@
cfg = config.desktop; cfg = config.desktop;
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# vscode # vscode
vscode-fhs vscode-fhs
]; ];
}; };
} }

6
modules/security/gpg.nix Normal file
View file

@ -0,0 +1,6 @@
{...}: {
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
}