We out here
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#https://xeiaso.net/talks/asg-2023-nixos/ example
|
||||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
isEnabled =
|
||||
config.azos.mail.enable;
|
||||
in {
|
||||
optionns.azos.mail.enable = lib.mkOption {
|
||||
default = true;
|
||||
example = true;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
home.file."mail.txt".text = ''Mail enabled'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user