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 管理自己