chore: add empty fallbacks for secrets
This commit is contained in:
parent
a364497901
commit
3c958ba502
3 changed files with 14 additions and 2 deletions
2
.gitattributes
vendored
2
.gitattributes
vendored
|
@ -1,2 +1,2 @@
|
|||
flake.lock -diff
|
||||
home/secrets/* -diff
|
||||
home/secrets/**/*.json -diff
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
...
|
||||
}: let
|
||||
inherit (pkgs.stdenv.hostPlatform) isDarwin isLinux;
|
||||
secretsAvailable = builtins.pathExists ./secrets/default.nix;
|
||||
in {
|
||||
imports =
|
||||
[
|
||||
|
@ -25,7 +26,11 @@ in {
|
|||
./apps/zsh.nix
|
||||
./secrets/sops.nix
|
||||
]
|
||||
++ lib.optionals (builtins.pathExists ./secrets/default.nix) [./secrets];
|
||||
++ (
|
||||
if secretsAvailable
|
||||
then [./secrets]
|
||||
else [./secrets/fallback.nix]
|
||||
);
|
||||
|
||||
home = {
|
||||
packages = with pkgs; ([
|
||||
|
|
7
home/secrets/fallback.nix
Normal file
7
home/secrets/fallback.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
accounts.email.accounts."personal" = {
|
||||
address = "your.email@example.com";
|
||||
userName = "";
|
||||
realName = "";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue