From c6be7e059e15a343e73323f545c4ca8ef5d26c89 Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Wed, 22 Oct 2025 13:06:06 -0400 Subject: [PATCH] compat: update deprecated config formats --- config/config.nix | 8 +++----- home-manager/tools.nix | 16 +++++++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/config/config.nix b/config/config.nix index faba432..7362dcb 100644 --- a/config/config.nix +++ b/config/config.nix @@ -31,11 +31,9 @@ in networking.networkmanager.enable = true; # Power button settings - services.logind = { - extraConfig = '' - HandlePowerKey=ignore - HandlePowerKeyLongPress=poweroff - ''; + services.logind.settings.Login = { + HandlePowerKey = "ignore"; + HandlePowerKeyLongPress = "poweroff"; }; # Set your time zone. diff --git a/home-manager/tools.nix b/home-manager/tools.nix index 0b4c839..5d3316d 100644 --- a/home-manager/tools.nix +++ b/home-manager/tools.nix @@ -23,13 +23,14 @@ programs.git = { enable = true; - userName = fullname; - userEmail = email; signing.key = "6CB106C25E86A9F7"; signing.signByDefault = true; - extraConfig = { + settings = { + user.name = fullname; + user.email = email; + github.user = "kiana-S"; credential.helper = "store"; safe.directory = [ "/etc/nixos" ]; @@ -38,8 +39,13 @@ init.defaultBranch = "main"; }; - delta.enable = true; - delta.options = { + }; + + programs.delta = { + enable = true; + enableGitIntegration = true; + + options = { features = "decorations"; relative-paths = true;