modules: system: put modules into folders

This commit is contained in:
Bruno BELANYI 2021-09-25 15:07:55 +02:00
parent d5b09c48ef
commit 7bec7ae0f9
9 changed files with 6 additions and 6 deletions

View file

@ -0,0 +1,22 @@
# Language settings
{ config, lib, ... }:
let
cfg = config.my.system.language;
in
{
options.my.system.language = with lib; {
enable = my.mkDisableOption "language configuration";
locale = mkOption {
type = types.str;
default = "en_US.UTF-8";
example = "fr_FR.UTF-8";
description = "Which locale to use for the system";
};
};
config = lib.mkIf cfg.enable {
# Select internationalisation properties.
i18n.defaultLocale = cfg.locale;
};
}