feat: use sops antipattern intentionally instead of git-crypt to read secrets

This commit is contained in:
leonhard committed 2026-11-13 12:06:58 +01:00
1 parent cf6f3772ab
commit 5c6888a352
5 files changed
+42 -4

No files matched your search

+14 -3
View File
@@ -12,16 +12,27 @@
./vaultwarden.nix
];
options.nix-leonhard.domain =
with lib.types;
lib.mkOption {
options.nix-leonhard = with lib.types; {
domain = lib.mkOption {
type = str;
default = "";
description = "Domain of the device.";
};
publicKeys = lib.mkOption {
type = listOf str;
default = [ ];
description = "Public keys for ssh login.";
};
};
nix-leonhard.graphical = false;
# Intentional antipattern for information that is not
# critical but should still not be in the config
nix-leonhard.domain = builtins.readFile config.sops.secrets.domain.path;
nix-leonhard.publicKeys = builtins.readFile config.sops.secrets.domain.publicKeys;
users.users.leonhard = {
initialPassword = "leonhard";
isNormalUser = true;