2021-06-11 15:52:11 +04:00
|
|
|
{ pkgs, config, lib, ... }: {
|
2021-06-14 12:57:39 +04:00
|
|
|
options = with lib;
|
|
|
|
with types; {
|
|
|
|
defaultApplications = mkOption {
|
|
|
|
type = attrsOf (submodule ({ name, ... }: {
|
|
|
|
options = {
|
|
|
|
cmd = mkOption { type = path; };
|
|
|
|
desktop = mkOption { type = str; };
|
|
|
|
};
|
|
|
|
}));
|
|
|
|
description = "Preferred applications";
|
2020-02-17 17:00:59 +04:00
|
|
|
};
|
2021-06-14 12:57:39 +04:00
|
|
|
|
|
|
|
startupApplications = mkOption {
|
|
|
|
type = listOf path;
|
|
|
|
description = "Applications to run on startup";
|
2020-02-17 17:00:59 +04:00
|
|
|
};
|
2021-06-14 12:57:39 +04:00
|
|
|
};
|
|
|
|
config = rec {
|
|
|
|
defaultApplications = {
|
2020-02-17 17:00:59 +04:00
|
|
|
text_processor = {
|
|
|
|
cmd = "${pkgs.abiword}/bin/abiword";
|
|
|
|
desktop = "abiword";
|
|
|
|
};
|
|
|
|
spreadsheet = {
|
|
|
|
cmd = "${pkgs.gnumeric}/bin/gnumeric";
|
|
|
|
desktop = "gnumeric";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|