nixos: create 'modules/nixos' folder
Let's consolidate all modules under one path, so that NixOS, home-manager, and nix-darwin (if I ever end up using it down the line) would go under the same folder.
This commit is contained in:
parent
b52e56ed08
commit
c856933803
74 changed files with 1 additions and 1 deletions
22
modules/nixos/system/language/default.nix
Normal file
22
modules/nixos/system/language/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue