feat: add home-manager locale module
This commit is contained in:
parent
e42b0c96f7
commit
7934e5194b
26
modules/home/locale/default.nix
Normal file
26
modules/home/locale/default.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.ataraxia.defaults.locale;
|
||||
|
||||
dk = "en_DK.UTF-8";
|
||||
ie = "en_IE.UTF-8";
|
||||
ru = "ru_RU.UTF-8";
|
||||
in
|
||||
{
|
||||
options.ataraxia.defaults.locale = {
|
||||
enable = mkEnableOption "Default locale settings";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home.language = {
|
||||
base = ie;
|
||||
address = ru;
|
||||
monetary = ru;
|
||||
numeric = ru;
|
||||
paper = ru;
|
||||
telephone = ru;
|
||||
time = dk;
|
||||
};
|
||||
};
|
||||
}
|
@ -39,6 +39,7 @@ in
|
||||
baseRole = {
|
||||
ataraxia.defaults.git.enable = mkDefault true;
|
||||
ataraxia.defaults.gpg.enable = mkDefault true;
|
||||
ataraxia.defaults.locale.enable = mkDefault true;
|
||||
ataraxia.defaults.zsh.enable = mkDefault true;
|
||||
ataraxia.security.pass-secret-service.enable = mkDefault true;
|
||||
ataraxia.security.password-store.enable = mkDefault true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user