nixos-config/modules/applications.nix

25 lines
581 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 {
2023-01-26 00:34:20 +03:00
defaultApplications = {};
2019-08-27 23:41:02 +04:00
};
}