refactor: move neovim to home-manager, add nix.gc, bump home.stateVersion to 25.11
This commit is contained in:
+6
-2
@@ -13,6 +13,12 @@
|
|||||||
|
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
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.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
@@ -139,8 +145,6 @@
|
|||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
kdePackages.kate
|
kdePackages.kate
|
||||||
nodejs
|
nodejs
|
||||||
git
|
|
||||||
neovim
|
|
||||||
# thunderbird
|
# thunderbird
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -45,7 +45,6 @@
|
|||||||
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
user = {
|
user = {
|
||||||
name = "Aloys23";
|
name = "Aloys23";
|
||||||
@@ -57,8 +56,14 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.neovim = {
|
||||||
|
enable = true;
|
||||||
|
withRuby = false;
|
||||||
|
withPython3 = false;
|
||||||
|
};
|
||||||
|
|
||||||
# 这个版本号不要改!它不是软件版本,而是系统状态标识
|
# 这个版本号不要改!它不是软件版本,而是系统状态标识
|
||||||
home.stateVersion = "23.11";
|
home.stateVersion = "25.11";
|
||||||
|
|
||||||
|
|
||||||
# 让 Home Manager 管理自己
|
# 让 Home Manager 管理自己
|
||||||
|
|||||||
Reference in New Issue
Block a user