mirror of
https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git
synced 2025-09-15 09:45:58 +03:00
added autoUpgrade and automatic GC for the system
This commit is contained in:
@@ -130,10 +130,36 @@
|
|||||||
nix.settings = {
|
nix.settings = {
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
substituters = ["https://hyprland.cachix.org"];
|
|
||||||
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Optimize storage and automatic scheduled GC running
|
||||||
|
# If you want to run GC manually, use commands:
|
||||||
|
# `nix-store --optimize` for finding and eliminating redundant copies of identical store paths
|
||||||
|
# `nix-store --gc` for optimizing the nix store and removing unreferenced and obsolete store paths
|
||||||
|
# `nix-collect-garbage -d` for deleting old generations of user profiles
|
||||||
|
nix.optimise.automatic = true;
|
||||||
|
nix.gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 15d";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Change runtime directory size
|
||||||
|
services.logind.extraConfig = "RuntimeDirectorySize=4G";
|
||||||
|
|
||||||
|
# Scheduled auto upgrade system (this is only for system upgrades,
|
||||||
|
# if you want to upgrade cargo\npm\pip global packages, docker containers or different part of the system
|
||||||
|
# or get really full system upgrade, use `topgrade` CLI utility manually instead.
|
||||||
|
# I recommend to use `topgrade` once a week or at least once a month)
|
||||||
|
system.autoUpgrade = {
|
||||||
|
enable = true;
|
||||||
|
operation = "switch"; # If you don't want to apply updates immediately, only after rebooting, use `boot` option in this case
|
||||||
|
flake = "/etc/nixos";
|
||||||
|
flags = [ "--update-input" "nixpkgs" "--commit-lock-file" ];
|
||||||
|
dates = "daily";
|
||||||
|
# channel = "https://nixos.org/channels/nixos-unstable";
|
||||||
|
};
|
||||||
|
|
||||||
# Linux Kernel
|
# Linux Kernel
|
||||||
boot.kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
boot.kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
||||||
|
|
||||||
@@ -459,17 +485,19 @@
|
|||||||
cargo-spellcheck
|
cargo-spellcheck
|
||||||
cargo-modules
|
cargo-modules
|
||||||
cargo-bloat
|
cargo-bloat
|
||||||
# cargo
|
|
||||||
bacon
|
bacon
|
||||||
taplo #toml formatter & lsp
|
taplo #toml formatter & lsp
|
||||||
|
|
||||||
lldb
|
lldb
|
||||||
|
llvmPackages.bintools
|
||||||
gcc13
|
gcc13
|
||||||
|
|
||||||
wasmedge
|
wasmedge
|
||||||
lunatic
|
lunatic
|
||||||
|
# wasm3
|
||||||
|
|
||||||
license-generator
|
license-generator
|
||||||
git-ignore
|
git-ignore
|
||||||
|
|
||||||
xh
|
xh
|
||||||
wezterm
|
wezterm
|
||||||
cool-retro-term
|
cool-retro-term
|
||||||
|
Reference in New Issue
Block a user