integrate stateful dockerised AI applications
This commit is contained in:
parent
4712934003
commit
a145fad398
8 changed files with 295 additions and 20 deletions
|
@ -5,7 +5,7 @@
|
|||
}: let
|
||||
inherit (builtins) getAttr stringLength substring;
|
||||
inherit (lib) mkOption;
|
||||
inherit (lib.attrsets) mapAttrs mapAttrs' nameValuePair;
|
||||
inherit (lib.attrsets) filterAttrs mapAttrs mapAttrs' nameValuePair;
|
||||
inherit (lib.strings) concatStringsSep toUpper;
|
||||
|
||||
make-app-profiles = cfg:
|
||||
|
@ -87,6 +87,12 @@ in {
|
|||
description = "The Firefox profile ID to set.";
|
||||
};
|
||||
|
||||
hidden = mkOption {
|
||||
type = bool;
|
||||
description = "Hide this webapp from the list of applications (but still generate a .desktop file).";
|
||||
default = false;
|
||||
};
|
||||
|
||||
extraArgs = mkOption {
|
||||
type = listOf str;
|
||||
default = [];
|
||||
|
@ -184,7 +190,7 @@ in {
|
|||
type = "Application";
|
||||
|
||||
exec = concatStringsSep " " ([
|
||||
"${config.programs.firefox.package}/bin/firefox"
|
||||
"${lib.getExe config.programs.firefox.package}"
|
||||
"--name"
|
||||
"${name}"
|
||||
"--app-id"
|
||||
|
@ -201,6 +207,7 @@ in {
|
|||
settings = {
|
||||
X-MultipleArgs = "false"; # Consider enabling, don't know what this does
|
||||
StartupWMClass = "${name}";
|
||||
NoDisplay = lib.boolToString cfg.hidden;
|
||||
};
|
||||
})
|
||||
config.programs.firefox.webapps;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue