modules/nixos/tf-glue: Cleanup

This commit is contained in:
kat witch 2021-04-29 11:47:31 +01:00
parent 19ba7b13c0
commit 0cb44bd1b0
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72

View file

@ -27,15 +27,15 @@ in {
out.set = removeAttrs cfg cfg.attrs; out.set = removeAttrs cfg cfg.attrs;
}; };
deploy.tf.deploy.systems."${config.networking.hostName}" = deploy.tf.deploy.systems.${config.networking.hostName} =
with tf.resources; { with tf.resources; {
isRemote = isRemote =
(config.networking.hostName != builtins.getEnv "HOME_HOSTNAME"); (config.networking.hostName != builtins.getEnv "HOME_HOSTNAME");
nixosConfig = config; nixosConfig = config;
connection = tf.resources.${config.networking.hostName}.connection.set; connection = tf.resources.${config.networking.hostName}.connection.set;
triggers.copy."${config.networking.hostName}" = triggers.copy.${config.networking.hostName} =
tf.resources.${config.networking.hostName}.refAttr "id"; tf.resources.${config.networking.hostName}.refAttr "id";
triggers.secrets."${config.networking.hostName}" = triggers.secrets.${config.networking.hostName} =
tf.resources.${config.networking.hostName}.refAttr "id"; tf.resources.${config.networking.hostName}.refAttr "id";
}; };