From c052eeec86098344fbb40ff42a3b3b548b3dbb29 Mon Sep 17 00:00:00 2001 From: Aloys23 Date: Fri, 29 May 2026 22:13:47 +0800 Subject: [PATCH] refactor: move neovim to home-manager, add nix.gc, bump home.stateVersion to 25.11 --- configuration.nix | 8 ++++++-- home.nix | 9 +++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/configuration.nix b/configuration.nix index 292fa46..c7bd336 100644 --- a/configuration.nix +++ b/configuration.nix @@ -13,6 +13,12 @@ nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nix.settings.auto-optimise-store = true; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 7d"; + }; # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; @@ -139,8 +145,6 @@ packages = with pkgs; [ kdePackages.kate nodejs - git - neovim # thunderbird ]; }; diff --git a/home.nix b/home.nix index 16de753..5daf800 100644 --- a/home.nix +++ b/home.nix @@ -45,7 +45,6 @@ programs.git = { enable = true; - settings = { user = { name = "Aloys23"; @@ -57,8 +56,14 @@ }; }; + programs.neovim = { + enable = true; + withRuby = false; + withPython3 = false; + }; + # 这个版本号不要改!它不是软件版本,而是系统状态标识 - home.stateVersion = "23.11"; + home.stateVersion = "25.11"; # 让 Home Manager 管理自己