diff options
| author | Rosa <rosaontheweb@proton.me> | 2026-01-10 15:44:55 -0500 |
|---|---|---|
| committer | Rosa <rosaontheweb@proton.me> | 2026-01-10 15:44:55 -0500 |
| commit | 488bd4b5c08d6fe9c44b0fa5cd3750265c2be482 (patch) | |
| tree | c3146c203ecb57f602170eb96b4a8bfa7220532f | |
| parent | e78f52370e02e10be269c9a8ef2fcd840d82b7a0 (diff) | |
automatic timezone on laptop
| -rw-r--r-- | common/greetd.nix | 14 | ||||
| -rw-r--r-- | common/region/na-east.nix | 4 | ||||
| -rw-r--r-- | flake.nix | 2 | ||||
| -rw-r--r-- | hosts/limbo/default.nix | 2 | ||||
| -rw-r--r-- | modules/tuigreet.nix | 8 |
5 files changed, 11 insertions, 19 deletions
diff --git a/common/greetd.nix b/common/greetd.nix deleted file mode 100644 index 47f5f81..0000000 --- a/common/greetd.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ config, pkgs, ... }: -{ - services.greetd = { - enable = true; - settings = { - default_session = { - command = "${pkgs.tuigreet}/bin/tuigreet --time"; - user = "greeter"; - }; - }; - - useTextGreeter = true; - }; -} diff --git a/common/region/na-east.nix b/common/region/na-east.nix index a7293a8..5446801 100644 --- a/common/region/na-east.nix +++ b/common/region/na-east.nix @@ -1,5 +1,5 @@ -{ config, ... }: +{ config, lib, ... }: { i18n.defaultLocale = "en_CA.UTF-8"; - time.timeZone = "Canada/Eastern"; + time.timeZone = lib.mkDefault "Canada/Eastern"; } @@ -26,7 +26,7 @@ pkgs = nixpkgs.legacyPackages.x86_64-linux; in { - formatter.x86_64-linux = pkgs.nixfmt-rfc-style; + formatter.x86_64-linux = pkgs.nixfmt; nixosConfigurations = { limbo = nixpkgs.lib.nixosSystem { modules = [ diff --git a/hosts/limbo/default.nix b/hosts/limbo/default.nix index c1d5a3a..59f048a 100644 --- a/hosts/limbo/default.nix +++ b/hosts/limbo/default.nix @@ -2,7 +2,6 @@ { imports = [ ../../common/core.nix - ../../common/niri.nix ../../common/pipewire.nix ../../common/region/na-east.nix ./disks.nix @@ -35,5 +34,6 @@ networkmanager.enable = true; }; + services.automatic-timezoned.enable = true; system.stateVersion = "26.05"; } diff --git a/modules/tuigreet.nix b/modules/tuigreet.nix index be2d51a..28ece20 100644 --- a/modules/tuigreet.nix +++ b/modules/tuigreet.nix @@ -1,4 +1,10 @@ -{ config, lib, options, pkgs, ... }: +{ + config, + lib, + options, + pkgs, + ... +}: { options = { greeters.tuigreet = { |
