diff --git a/modules/microvm/virtualization/microvm/guivm.nix b/modules/microvm/virtualization/microvm/guivm.nix index aa941ba15..1fc4a9c11 100644 --- a/modules/microvm/virtualization/microvm/guivm.nix +++ b/modules/microvm/virtualization/microvm/guivm.nix @@ -180,7 +180,20 @@ let pkgs.eww pkgs.wlr-randr ] - ++ [ pkgs.ctrl-panel ] + ++ [ + pkgs.ctrl-panel + (pkgs.writeShellApplication { + name = "github-config"; + text = '' + mkdir -p "$HOME"/.config/ctrl-panel + cat > "$HOME"/.config/ctrl-panel/config.toml << EOF + token = "${cfg.githubToken}" + owner = "${cfg.githubOwner}" + repo = "${cfg.githubRepo}" + EOF + ''; + }) + ] ++ (lib.optional ( config.ghaf.profiles.debug.enable && config.ghaf.virtualization.microvm.idsvm.mitmproxy.enable ) pkgs.mitmweb-ui) @@ -193,6 +206,7 @@ let sessionVariables = { XDG_PICTURES_DIR = "$HOME/Pictures"; XDG_VIDEOS_DIR = "$HOME/Videos"; + GITHUB_CONFIG = "$HOME/.config/ctrl-panel/config.toml"; }; }; @@ -308,6 +322,25 @@ in Context Identifier (CID) of the GUIVM VSOCK ''; }; + + githubOwner = lib.mkOption { + type = lib.types.str; + description = '' + Github owner account of the bug reporter issue + ''; + }; + githubRepo = lib.mkOption { + type = lib.types.str; + description = '' + Github repo of the bug reporter issue + ''; + }; + githubToken = lib.mkOption { + type = lib.types.str; + description = '' + Personal token of the bug reporter Github account + ''; + }; }; config = lib.mkIf cfg.enable { diff --git a/modules/reference/profiles/laptop-x86.nix b/modules/reference/profiles/laptop-x86.nix index 93b7c6d85..dda2d01a7 100644 --- a/modules/reference/profiles/laptop-x86.nix +++ b/modules/reference/profiles/laptop-x86.nix @@ -94,6 +94,9 @@ in guivm = { enable = true; extraModules = cfg.guivmExtraModules; + githubToken = "xxxxxxxxxxxxxxxxxxxx"; + githubOwner = "yyyyy"; + githubRepo = "zzzzzz"; }; audiovm = {