17 lines
352 B
Nix
Executable File
17 lines
352 B
Nix
Executable File
#https://xeiaso.net/talks/asg-2023-nixos/ example
|
|
{ lib, config, pkgs, ... }:
|
|
let
|
|
isEnabled =
|
|
config.azos.mail.enable;
|
|
in {
|
|
options.azos.mail.enable = lib.mkOption {
|
|
default = true;
|
|
example = true;
|
|
type = lib.types.bool;
|
|
};
|
|
|
|
config = lib.mkIf isEnabled {
|
|
home.file."mail.txt".text = ''Mail enabled'';
|
|
};
|
|
}
|