tv dummy_secrets: init

This commit is contained in:
tv 2017-06-20 00:02:04 +02:00
parent 7cdd99f2b7
commit 57c6b890f9
5 changed files with 16 additions and 1 deletions

View file

@ -11,7 +11,7 @@ with import <stockholm/lib>;
nixos-config.symlink = "stockholm/tv/1systems/${host.name}.nix";
secrets.file =
if getEnv "dummy_secrets" == "true"
then toString <stockholm/null>
then toString <stockholm/tv/dummy_secrets>
else "/home/tv/secrets/${host.name}";
secrets-common.file = "/home/tv/secrets/common";
stockholm.file = "/home/tv/stockholm";

View file

@ -0,0 +1,8 @@
{ config, ... }:
{
users.users.root = {
openssh.authorizedKeys.keys = [
config.krebs.users.tv.pubkey
];
};
}

View file

@ -0,0 +1 @@
_: {}

View file

@ -0,0 +1,3 @@
-----BEGIN OPENSSH PRIVATE KEY-----
dummy
-----END OPENSSH PRIVATE KEY-----

View file

@ -0,0 +1,3 @@
-----BEGIN RSA PRIVATE KEY-----
dummy
-----END RSA PRIVATE KEY-----