From 8d50690a790bd1a2c8d994fb4c0a55f5d9401139 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sun, 5 Jun 2022 08:32:23 -0400 Subject: [PATCH] update system --- flake.lock | 18 +++++++++--------- hosts/common.nix | 3 +++ modules/system/timezone.nix | 6 +++++- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/flake.lock b/flake.lock index ba3aa40..4525a75 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1651007090, - "narHash": "sha256-C/OoQRzTUOWEr1sd3xTKA2GudA1YG1XB3MlL6KfTchg=", + "lastModified": 1654422613, + "narHash": "sha256-ZxkMM13AnrMwYOV99ohzcqeTkAOqD9Q2SBdZ9WoFE9Y=", "owner": "nix-community", "repo": "home-manager", - "rev": "778af87a981eb2bfa3566dff8c3fb510856329ef", + "rev": "20703892473d01c70fb10248442231fe94f4ceb4", "type": "github" }, "original": { @@ -23,11 +23,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1651007983, - "narHash": "sha256-GNay7yDPtLcRcKCNHldug85AhAvBpTtPEJWSSDYBw8U=", + "lastModified": 1654230545, + "narHash": "sha256-8Vlwf0x8ow6pPOK2a04bT+pxIeRnM1+O0Xv9/CuDzRs=", "owner": "nixos", "repo": "nixpkgs", - "rev": "e10da1c7f542515b609f8dfbcf788f3d85b14936", + "rev": "236cc2971ac72acd90f0ae3a797f9f83098b17ec", "type": "github" }, "original": { @@ -39,11 +39,11 @@ }, "nur": { "locked": { - "lastModified": 1651915527, - "narHash": "sha256-hsbk0qcI/3/VwTV+G/ffAfg0YGZoPZwViM2TSHK4UKc=", + "lastModified": 1654429664, + "narHash": "sha256-rQe6/72yWA78RzWogM8ZT++XYoYrZJdF/T6mjcCqsfU=", "owner": "nix-community", "repo": "nur", - "rev": "c8debd303e1e770ae9082f9beb0d039f7e989c8f", + "rev": "18fa7520a7ca968eb74b46036329f3f7606bd541", "type": "github" }, "original": { diff --git a/hosts/common.nix b/hosts/common.nix index 87a063b..44b8e57 100644 --- a/hosts/common.nix +++ b/hosts/common.nix @@ -33,6 +33,9 @@ # Enable features in Nix commands nix.extraOptions = "experimental-features = nix-command flakes"; + # Pin a state version to prevent warnings + system.stateVersion = "22.11"; + # Basic common system packages for all devices environment.systemPackages = with pkgs; [ git vim wget curl ]; diff --git a/modules/system/timezone.nix b/modules/system/timezone.nix index 02a7d3e..896af0b 100644 --- a/modules/system/timezone.nix +++ b/modules/system/timezone.nix @@ -6,6 +6,10 @@ location = { provider = "geoclue2"; }; # Enable local time based on time zone - services.localtime.enable = true; + services.localtimed.enable = true; + + # Required to get localtimed to talk to geoclue2 + services.geoclue2.appConfig.localtimed.isSystem = true; + services.geoclue2.appConfig.localtimed.isAllowed = true; }