Setup git-crypt for secrets.nix, enables gnupg in nix as well.
This commit is contained in:
parent
64d396f6cc
commit
e9eb6a553c
6 changed files with 35 additions and 8 deletions
3
.gitattributes
vendored
3
.gitattributes
vendored
|
@ -1,2 +1,5 @@
|
||||||
# Auto detect text files and perform LF normalization
|
# Auto detect text files and perform LF normalization
|
||||||
* text=auto
|
* text=auto
|
||||||
|
|
||||||
|
# git-crypt
|
||||||
|
secrets.nix filter=git-crypt diff=git-crypt
|
||||||
|
|
25
.vscode/settings.json
vendored
25
.vscode/settings.json
vendored
|
@ -1,16 +1,25 @@
|
||||||
{
|
{
|
||||||
"explorer.fileNesting.patterns": {
|
|
||||||
".gitignore": ".gitattributes, .envrc, readme",
|
|
||||||
"flake.nix": "flake.lock, shell.nix, checks.nix"
|
|
||||||
},
|
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"editor.formatOnSaveMode": "file",
|
"editor.formatOnSaveMode": "file",
|
||||||
|
"explorer.fileNesting.patterns": {
|
||||||
|
".gitignore": ".gitattributes, .envrc, readme",
|
||||||
|
"flake.nix": "flake.lock, shell.nix, secrets.nix"
|
||||||
|
},
|
||||||
|
"files.exclude": {
|
||||||
|
".git-crypt": true
|
||||||
|
},
|
||||||
"terminal.integrated.defaultProfile.linux": "fish-fhs",
|
"terminal.integrated.defaultProfile.linux": "fish-fhs",
|
||||||
"terminal.integrated.profiles.linux": {
|
"terminal.integrated.profiles.linux": {
|
||||||
// ...
|
|
||||||
"fish-fhs": {
|
"fish-fhs": {
|
||||||
"path": "systemd-run",
|
"args": [
|
||||||
"args": ["--user", "--pty", "--quiet", "--same-dir", "--service-type=exec", "fish"]
|
"--user",
|
||||||
|
"--pty",
|
||||||
|
"--quiet",
|
||||||
|
"--same-dir",
|
||||||
|
"--service-type=exec",
|
||||||
|
"fish"
|
||||||
|
],
|
||||||
|
"path": "systemd-run"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -21,6 +21,9 @@
|
||||||
# System-wide packages, in case we log in as root
|
# System-wide packages, in case we log in as root
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
curl
|
curl
|
||||||
|
git
|
||||||
|
git-crypt
|
||||||
|
gpg-tui
|
||||||
micro
|
micro
|
||||||
openssh
|
openssh
|
||||||
ranger
|
ranger
|
||||||
|
|
9
hosts/common/core/gnupg.nix
Normal file
9
hosts/common/core/gnupg.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
# GnuPG
|
||||||
|
programs.gnupg.agent = {
|
||||||
|
enable = true;
|
||||||
|
pinentryPackage = pkgs.pinentry-gnome3;
|
||||||
|
};
|
||||||
|
services.pcscd.enable = true;
|
||||||
|
}
|
BIN
secrets.nix
Normal file
BIN
secrets.nix
Normal file
Binary file not shown.
|
@ -34,6 +34,9 @@ in
|
||||||
|
|
||||||
# Git for repo management
|
# Git for repo management
|
||||||
git
|
git
|
||||||
|
git-crypt
|
||||||
|
gnupg
|
||||||
|
gpg-tui
|
||||||
|
|
||||||
# Shells
|
# Shells
|
||||||
fish
|
fish
|
||||||
|
|
Loading…
Add table
Reference in a new issue