From 7e2ad09296a8ce5b0d79e6460e1a2bea164bbfb2 Mon Sep 17 00:00:00 2001 From: Andre Date: Sun, 11 Aug 2024 19:08:42 -0400 Subject: [PATCH] General: enable automatic timezones --- flake.lock | 6 +++--- modules/system/system.nix | 11 +++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index a05146e..5c36855 100644 --- a/flake.lock +++ b/flake.lock @@ -313,11 +313,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1722987190, - "narHash": "sha256-68hmex5efCiM2aZlAAEcQgmFI4ZwWt8a80vOeB/5w3A=", + "lastModified": 1723282977, + "narHash": "sha256-oTK91aOlA/4IsjNAZGMEBz7Sq1zBS0Ltu4/nIQdYDOg=", "owner": "nixos", "repo": "nixpkgs", - "rev": "21cc704b5e918c5fbf4f9fff22b4ac2681706d90", + "rev": "a781ff33ae258bbcfd4ed6e673860c3e923bf2cc", "type": "github" }, "original": { diff --git a/modules/system/system.nix b/modules/system/system.nix index 7bb1af6..8935647 100644 --- a/modules/system/system.nix +++ b/modules/system/system.nix @@ -46,6 +46,9 @@ in environment.systemPackages = cfg.corePackages ++ cfg.packages; services = { + # Automatically set the timezone + automatic-timezoned.enable = true; + # Enable fwupd (firmware updater) fwupd.enable = true; @@ -70,6 +73,14 @@ in }; }; + # Enable visual updates + system.activationScripts.diff = { + supportsDryActivation = true; + text = '' + ${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig" + ''; + }; + # Limit logout stop timer duration to 30 seconds systemd.user.extraConfig = '' DefaultTimeoutStopSec=30s