vagrant/plugins/guests/nixos/guest.rb

12 lines
240 B
Ruby

require "vagrant"
module VagrantPlugins
module GuestNixos
class Guest < Vagrant.plugin("2", :guest)
def detect?(machine)
machine.communicate.test("test -f /run/current-system/nixos-version")
end
end
end
end