modules/nixos/tf-glue: isRemote check

This commit is contained in:
kat witch 2021-04-28 22:05:39 +01:00
parent 19ab6a6881
commit fb724b76e9
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72

View file

@ -28,7 +28,7 @@ in {
};
deploy.tf.deploy.systems."${config.networking.hostName}" = with tf.resources; {
isRemote = false;
isRemote = (config.networking.hostName != builtins.getEnv "HOME_HOSTNAME");
nixosConfig = config;
connection = tf.resources.${config.networking.hostName}.connection.set;
triggers.copy."${config.networking.hostName}" = tf.resources.${config.networking.hostName}.refAttr "id";