refactor(treewide): enable modules based on host.type
This commit is contained in:
parent
779603c4cc
commit
25e02c034c
10 changed files with 39 additions and 67 deletions
|
|
@ -1,20 +1,17 @@
|
|||
{ lib, config, ... }:
|
||||
{ lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.systemModules.locale;
|
||||
inherit (lib) mkIf mkDefault;
|
||||
inherit (lib) mkDefault;
|
||||
in
|
||||
|
||||
{
|
||||
config = mkIf cfg.enable {
|
||||
i18n = {
|
||||
defaultLocale = mkDefault "en_US.UTF-8";
|
||||
supportedLocales = mkDefault [
|
||||
"en_US.UTF-8/UTF-8"
|
||||
];
|
||||
};
|
||||
time.timeZone = mkDefault "Pacific/Auckland";
|
||||
location.provider = "geoclue2";
|
||||
services.geoclue2.enable = true;
|
||||
i18n = {
|
||||
defaultLocale = mkDefault "en_US.UTF-8";
|
||||
supportedLocales = mkDefault [
|
||||
"en_US.UTF-8/UTF-8"
|
||||
];
|
||||
};
|
||||
time.timeZone = mkDefault "Pacific/Auckland";
|
||||
location.provider = "geoclue2";
|
||||
services.geoclue2.enable = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue