format files with nixfmt

phaer 40142caa e6b629da

Changed files
+34 -24
nixos
+6 -1
nixos/modules/virtualisation/kubevirt.nix
···
-
{ config, lib, pkgs, ... }:
{
imports = [
···
+
{
+
config,
+
lib,
+
pkgs,
+
...
+
}:
{
imports = [
+22 -22
nixos/modules/virtualisation/vagrant-virtualbox-image.nix
···
mkdir workdir
cd workdir
-
# 1. create that metadata.json file
-
echo '{"provider":"virtualbox"}' > metadata.json
-
# 2. create a default Vagrantfile config
-
cat <<VAGRANTFILE > Vagrantfile
-
Vagrant.configure("2") do |config|
-
config.vm.base_mac = "0800275F0936"
-
end
-
VAGRANTFILE
-
# 3. add the exported VM files
-
tar xvf ${config.system.build.virtualBoxOVA}/*.ova
-
# 4. move the ovf to the fixed location
-
mv *.ovf box.ovf
-
# 5. generate OVF manifest file
-
rm *.mf
-
touch box.mf
-
for fname in *; do
-
checksum=$(sha256sum $fname | cut -d' ' -f 1)
-
echo "SHA256($fname)= $checksum" >> box.mf
-
done
-
# 6. compress everything back together
-
tar --owner=0 --group=0 --sort=name --numeric-owner -czf $out .
-
'';
}
···
mkdir workdir
cd workdir
+
# 1. create that metadata.json file
+
echo '{"provider":"virtualbox"}' > metadata.json
+
# 2. create a default Vagrantfile config
+
cat <<VAGRANTFILE > Vagrantfile
+
Vagrant.configure("2") do |config|
+
config.vm.base_mac = "0800275F0936"
+
end
+
VAGRANTFILE
+
# 3. add the exported VM files
+
tar xvf ${config.system.build.virtualBoxOVA}/*.ova
+
# 4. move the ovf to the fixed location
+
mv *.ovf box.ovf
+
# 5. generate OVF manifest file
+
rm *.mf
+
touch box.mf
+
for fname in *; do
+
checksum=$(sha256sum $fname | cut -d' ' -f 1)
+
echo "SHA256($fname)= $checksum" >> box.mf
+
done
+
# 6. compress everything back together
+
tar --owner=0 --group=0 --sort=name --numeric-owner -czf $out .
+
'';
}
+6 -1
nixos/modules/virtualisation/vmware-image.nix
···
-
{ config, pkgs, lib, ... }:
let
boolToStr = value: if value then "on" else "off";
cfg = config.vmware;
···
+
{
+
config,
+
pkgs,
+
lib,
+
...
+
}:
let
boolToStr = value: if value then "on" else "off";
cfg = config.vmware;