moving to new config
This commit is contained in:
parent
33434749fa
commit
fe796b5fb7
8 changed files with 224 additions and 30 deletions
20
modules/nixos/system/time/default.nix
Normal file
20
modules/nixos/system/time/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ options
|
||||
, config
|
||||
, pkgs
|
||||
, lib
|
||||
, ...
|
||||
}:
|
||||
with lib;
|
||||
with lib.wyrdgard; let
|
||||
cfg = config.wyrdgard.system.time;
|
||||
in
|
||||
{
|
||||
options.wyrdgard.system.time = with types; {
|
||||
enable =
|
||||
mkBoolOpt false "Whether or not to configure timezone information.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
time.timeZone = "Europe/Berlin";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue