mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
22 lines
463 B
Nix
22 lines
463 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.programs.foo;
|
|
|
|
settingsFormat = pkgs.format.json { };
|
|
in
|
|
{
|
|
options.programs.foo = {
|
|
enable = lib.mkEnableOption "foo, a sample program";
|
|
package = lib.mkPackageOption pkgs "foo" { };
|
|
settings = lib.mkOption {
|
|
type = settingsFormat.type;
|
|
default = { };
|
|
# TODO: Don't forget to set an example here.
|
|
description = ''
|
|
The settings of the program.
|
|
'';
|
|
};
|
|
};
|
|
}
|