feat: use sops antipattern intentionally instead of git-crypt to read secrets
This commit is contained in:
1 parent
cf6f3772ab
commit
5c6888a352
5 files changed
+42
-4
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user