aboutsummaryrefslogtreecommitdiffstats
path: root/modules/system/deep-clean/default.nix
blob: af7538223de9373f8ced199a366c175da7fba0da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Deep clean script for Nix systems
{
  config,
  lib,
  pkgs,
  ...
}:
let
  inherit ((import ../../lib/script.nix { inherit lib pkgs; })) mkScriptModule;
in
mkScriptModule {
  scope = [ "system" ];
  name = "deep-clean";
  path = ./deep-clean.sh;
  description = "Deep clean script for Nix systems\nRemoves old generations, garbage, and optimizes store\nWARNING: Do NOT run with sudo - run as normal user";
  deps = [ pkgs.bash ];
  inherit config;
}