chore: add empty fallbacks for secrets

This commit is contained in:
winston 2023-02-19 01:58:53 +01:00
parent a364497901
commit 3c958ba502
Signed by: winston
GPG key ID: 3786770EDBC2B481
3 changed files with 14 additions and 2 deletions

2
.gitattributes vendored
View file

@ -1,2 +1,2 @@
flake.lock -diff flake.lock -diff
home/secrets/* -diff home/secrets/**/*.json -diff

View file

@ -6,6 +6,7 @@
... ...
}: let }: let
inherit (pkgs.stdenv.hostPlatform) isDarwin isLinux; inherit (pkgs.stdenv.hostPlatform) isDarwin isLinux;
secretsAvailable = builtins.pathExists ./secrets/default.nix;
in { in {
imports = imports =
[ [
@ -25,7 +26,11 @@ in {
./apps/zsh.nix ./apps/zsh.nix
./secrets/sops.nix ./secrets/sops.nix
] ]
++ lib.optionals (builtins.pathExists ./secrets/default.nix) [./secrets]; ++ (
if secretsAvailable
then [./secrets]
else [./secrets/fallback.nix]
);
home = { home = {
packages = with pkgs; ([ packages = with pkgs; ([

View file

@ -0,0 +1,7 @@
{
accounts.email.accounts."personal" = {
address = "your.email@example.com";
userName = "";
realName = "";
};
}