1
0
Fork 0

Secrets: fix git-crypt by adding it to core packages

This commit is contained in:
Aires 2024-10-07 10:25:42 -04:00
parent e59a0c1735
commit befaec44d6
6 changed files with 1 additions and 20 deletions

View file

@ -12,7 +12,6 @@
# Install base packages # Install base packages
aux.system.packages = with pkgs; [ aux.system.packages = with pkgs; [
fastfetch # Show a neat system statistics screen when opening a terminal fastfetch # Show a neat system statistics screen when opening a terminal
git-crypt # Secrets management
htop # System monitor htop # System monitor
zellij # Terminal multiplexer zellij # Terminal multiplexer
]; ];

View file

@ -28,6 +28,7 @@ in
dconf dconf
direnv direnv
git git
git-crypt # Secrets management
gnutar gnutar
gzip gzip
home-manager home-manager

View file

@ -50,7 +50,6 @@ in
# Configure home-manager # Configure home-manager
home-manager.users.aires = { home-manager.users.aires = {
imports = [ imports = [
../common/home-manager/git-crypt.nix
../common/home-manager/gnome.nix ../common/home-manager/gnome.nix
../common/home-manager/zsh.nix ../common/home-manager/zsh.nix
]; ];

View file

@ -1,16 +0,0 @@
# Configure Git to support git-crypt
{ pkgs, ... }:
{
programs.git = {
extraConfig = {
filter."git-crypt" = {
required = true;
smudge = "/run/current-system/sw/bin/git-crypt smudge";
clean = "/run/current-system/sw/bin/git-crypt clean";
};
diff."git-crypt" = {
textconv = "/run/current-system/sw/bin/git-crypt diff";
};
};
};
}

View file

@ -51,7 +51,6 @@ in
home-manager.users.gremlin = { home-manager.users.gremlin = {
imports = [ imports = [
../common/home-manager/git-crypt.nix
../common/home-manager/gnome.nix ../common/home-manager/gnome.nix
../common/home-manager/zsh.nix ../common/home-manager/zsh.nix
]; ];

View file

@ -2,7 +2,6 @@
{ {
# Give root user access to run remote builds # Give root user access to run remote builds
home-manager.users.root = { home-manager.users.root = {
imports = [ ../common/home-manager/git-crypt.nix ];
home.stateVersion = "24.05"; home.stateVersion = "24.05";
programs = { programs = {
git.extraConfig = { git.extraConfig = {