Add git-crypt and fix clrf line endings

main
Carsten Kragelund 2023-04-27 11:27:48 +02:00
parent 74c96df3f6
commit ecc3e77419
Signed by: nyx
GPG Key ID: CADDADEEC9F753C0
5 changed files with 33 additions and 27 deletions

@ -0,0 +1,4 @@
# Do not edit this file. To specify the files to encrypt, create your own
# .gitattributes file in the directory where your files are.
* !filter !diff
*.gpg binary

1
.gitattributes vendored

@ -1 +1,2 @@
*.png filter=lfs diff=lfs merge=lfs -text *.png filter=lfs diff=lfs merge=lfs -text
*.enc filter=git-crypt diff=git-crypt

@ -1,14 +1,15 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
imports = [ ]; imports = [ ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
git git
git-lfs git-lfs
gnupg git-crypt
home-manager gnupg
ntfsprogs home-manager
wget ntfsprogs
]; wget
} ];
}

@ -1,7 +1,7 @@
{ ...} : { { ...} : {
imports = [ imports = [
./gitea.nix ./gitea.nix
./postgres.nix ./postgres.nix
./sshd.nix ./sshd.nix
]; ];
} }

@ -1,6 +1,6 @@
{ ... }: { { ... }: {
services.openssh = { services.openssh = {
enable = true; enable = true;
permitRootLogin = "yes"; permitRootLogin = "yes";
}; };
} }