nixos-config/modules/applications.nix

30 lines
683 B
Nix
Raw Normal View History

2019-08-27 23:41:02 +04:00
{ pkgs, config, lib, ... }:
2020-08-15 19:36:16 +04:00
with config.deviceSpecific;
2020-08-11 02:38:02 +04:00
{
2021-06-16 05:30:04 +03:00
options = with lib;
with types; {
defaultApplications = mkOption {
type = attrsOf (submodule ({ name, ... }: {
options = {
cmd = mkOption { type = path; };
desktop = mkOption { type = str; };
};
}));
description = "Preferred applications";
2019-08-27 23:41:02 +04:00
};
2021-06-16 05:30:04 +03:00
startupApplications = mkOption {
type = listOf path;
description = "Applications to run on startup";
2019-08-27 23:41:02 +04:00
};
2021-06-16 05:30:04 +03:00
};
config = rec {
defaultApplications = {
2020-08-04 01:51:37 +04:00
pdf = {
cmd = "${pkgs.zathura}/bin/zathura";
desktop = "zathura";
};
2019-09-17 16:48:19 +04:00
};
2019-08-27 23:41:02 +04:00
};
}