···4 pkgs,
5 ...
6}:
7-8-with lib;
9-10let
11 cfg = config.services.automatic-timezoned;
12in
13{
14 options = {
15 services.automatic-timezoned = {
16- enable = mkOption {
17- type = types.bool;
18 default = false;
19 description = ''
20 Enable `automatic-timezoned`, simple daemon for keeping the system
···28 to make the choice deliberate. An error will be presented otherwise.
29 '';
30 };
31- package = mkPackageOption pkgs "automatic-timezoned" { };
32 };
33 };
3435- config = mkIf cfg.enable {
36 # This will give users an error if they have set an explicit time
37 # zone, rather than having the service silently override it.
38 time.timeZone = null;
···4 pkgs,
5 ...
6}:
0007let
8 cfg = config.services.automatic-timezoned;
9in
10{
11 options = {
12 services.automatic-timezoned = {
13+ enable = lib.mkOption {
14+ type = lib.types.bool;
15 default = false;
16 description = ''
17 Enable `automatic-timezoned`, simple daemon for keeping the system
···25 to make the choice deliberate. An error will be presented otherwise.
26 '';
27 };
28+ package = lib.mkPackageOption pkgs "automatic-timezoned" { };
29 };
30 };
3132+ config = lib.mkIf cfg.enable {
33 # This will give users an error if they have set an explicit time
34 # zone, rather than having the service silently override it.
35 time.timeZone = null;
···4 pkgs,
5 ...
6}:
7-8-with lib;
9-10let
11 cfg = config.services.localtimed;
12in
···1516 options = {
17 services.localtimed = {
18- enable = mkOption {
19- type = types.bool;
20 default = false;
21 description = ''
22 Enable `localtimed`, a simple daemon for keeping the
···29 to make the choice deliberate. An error will be presented otherwise.
30 '';
31 };
32- package = mkPackageOption pkgs "localtime" { };
33- geoclue2Package = mkPackageOption pkgs "Geoclue2" { default = "geoclue2-with-demo-agent"; };
34 };
35 };
3637- config = mkIf cfg.enable {
38 # This will give users an error if they have set an explicit time
39 # zone, rather than having the service silently override it.
40 time.timeZone = null;
···4 pkgs,
5 ...
6}:
0007let
8 cfg = config.services.localtimed;
9in
···1213 options = {
14 services.localtimed = {
15+ enable = lib.mkOption {
16+ type = lib.types.bool;
17 default = false;
18 description = ''
19 Enable `localtimed`, a simple daemon for keeping the
···26 to make the choice deliberate. An error will be presented otherwise.
27 '';
28 };
29+ package = lib.mkPackageOption pkgs "localtime" { };
30+ geoclue2Package = lib.mkPackageOption pkgs "Geoclue2" { default = "geoclue2-with-demo-agent"; };
31 };
32 };
3334+ config = lib.mkIf cfg.enable {
35 # This will give users an error if they have set an explicit time
36 # zone, rather than having the service silently override it.
37 time.timeZone = null;