File tree Expand file tree Collapse file tree 7 files changed +29
-29
lines changed
Expand file tree Collapse file tree 7 files changed +29
-29
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ path = [
2222 " modules/development/audio_test/test_file1.mp3" ,
2323 " modules/hardware/x86_64-generic/kernel/configs/ghaf_host_hardened_baseline-x86" ,
2424 " modules/reference/hardware/jetpack/ghaf_host_hardened_baseline-jetson-orin" ,
25- " modules/microvm/sysvms/idsvm/mitmproxy/mitmproxy-ca/*"
25+ " modules/microvm/sysvms/idsvm/mitmproxy/mitmproxy-ca/*" ,
26+ " modules/reference/hardware/jetpack/0001-ARM-SMMU-drivers-return-always-true-for-IOMMU_CAP_CA.patch"
2627]
2728
2829[[annotations ]]
Original file line number Diff line number Diff line change 145145 } ;
146146
147147 ctrl-panel = {
148- url = "github:tiiuae/ghaf-ctrl-panel/555a414a5d50eed7f17e7f45221eba0261c40dc6 " ;
148+ url = "github:tiiuae/ghaf-ctrl-panel/c598cf55ed9cc9be29f88d78bf2495393292335c " ;
149149 inputs = {
150150 nixpkgs . follows = "nixpkgs" ;
151151 flake-utils . follows = "flake-utils" ;
Original file line number Diff line number Diff line change 132132 icon = "losslesscut" ;
133133 command = "losslesscut --enable-features=UseOzonePlatform --ozone-platform=wayland" ;
134134 }
135- ]
136- ++ ( lib . optionals config . ghaf . reference . services . wireguard-gui [
137- {
138- name = "Wireguard BusinessVM" ;
139- description = "WireGuard VPN configuration tool" ;
140- icon = "airvpn" ;
141- command = "wireguard-gui-launcher" ;
142- }
143- ] ) ;
135+ ] ;
144136 extraModules = [
145137
146138 {
Original file line number Diff line number Diff line change 6868 ] ;
6969 }
7070 )
71- ] )
72- ++ ( lib . optionals config . ghaf . reference . services . wireguard-gui [
73- {
74- name = "Wireguard ChromeVM" ;
75- description = "WireGuard VPN configuration tool for app-vms" ;
76- icon = "airvpn" ;
77- command = "wireguard-gui-launcher" ;
78- }
7971 ] ) ;
8072 extraModules = [
8173 {
Original file line number Diff line number Diff line change 1313
1414 appVms = lib . attrByPath [ "ghaf" "virtualization" "microvm" "appvm" "vms" ] { } config ;
1515 wireguardGuiEnabledVms = lib . lists . map ( app : app . vmName ) (
16- lib . lists . filter ( app : app . command == "wireguard-gui-launcher" ) (
17- lib . lists . concatMap ( vm : map ( app : app // { vmName = "${ vm . name } -vm" ; } ) vm . applications ) (
18- lib . attrsets . mapAttrsToList ( name : vm : { inherit name ; } // vm ) (
19- lib . filterAttrs ( _ : vm : vm . enable ) appVms
16+ lib . lists . filter
17+ (
18+ app :
19+ let
20+ services = lib . attrByPath [ "ghaf" "reference" "services" ] { } app ;
21+ wgService = services . "wireguard-gui" or null ;
22+ in
23+ wgService != null && ( wgService . enable or false )
24+ )
25+ (
26+ lib . lists . concatMap ( vm : map ( app : ( app // { vmName = "${ vm . name } -vm" ; } ) ) vm . extraModules ) (
27+ lib . attrsets . mapAttrsToList ( name : vm : { inherit name ; } // vm ) (
28+ lib . filterAttrs ( _ : vm : vm . enable ) appVms
29+ )
2030 )
2131 )
22- )
2332 ) ;
2433in
2534{
Original file line number Diff line number Diff line change 3535 # files = [ "/etc/wireguard/wg0.conf" ];
3636 } ;
3737
38+ ghaf . givc . appvm . applications = [
39+ {
40+ name = "wireguard-gui" ;
41+ command = "${ config . ghaf . givc . appPrefix } /run-waypipe ${ wireguard-gui-launcher } /bin/wireguard-gui-launcher" ;
42+ }
43+ ] ;
44+
3845 environment . systemPackages = [
3946 pkgs . polkit
4047 pkgs . wireguard-tools
41- wireguard-gui-launcher
4248 ] ;
4349
4450 security . polkit = {
You can’t perform that action at this time.
0 commit comments