linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
commit 2af87c3ed779d67f7248f70614abda933aec483b parent 804013f0c788422d53a991849202df576a478638 Author: Jul <jul@9o.is> Date: Thu, 20 Nov 2025 01:21:33 -0500 add qvm_features Diffstat:
| M | qubes/example-app/gen.sh | | | 1 | + |
| M | qubes/genfn.sh | | | 13 | +++++++++++++ |
| M | qubes/rules.sh | | | 3 | +++ |
3 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/qubes/example-app/gen.sh b/qubes/example-app/gen.sh @@ -1,2 +1,3 @@ qvm_create --template example --label black qvm_prefs provides_network true +qvm_features menu-items terminal-default.desktop foobar.desktop diff --git a/qubes/genfn.sh b/qubes/genfn.sh @@ -137,3 +137,16 @@ qvm_prefs() { INSTALL="$INSTALL $_out" } + +qvm_features() { + _prop=$1 + shift + _value="$*" + _out=$outdir/qvm-feature-$_prop + + build qvm_features $_out '|' $dir/create + bind prop $_prop + bind value $_value + + INSTALL="$INSTALL $_out" +} diff --git a/qubes/rules.sh b/qubes/rules.sh @@ -33,3 +33,6 @@ bind description 'QVM CREATE $qvm' rule qvm_prefs 'qvm-prefs $qvm $args && touch $out' bind description 'QVM PREFS $qvm $args' + +rule qvm_features 'qvm-features $qvm $prop "$value" && touch $out' +bind description 'QVM FEATURES $qvm $prop'