From 368cb6b0d25db2ae23be42ad51584de059997e51 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 20 May 2024 16:10:21 +0200 Subject: refactor(sys): Modularize and move to `modules/system` or `pkgs` --- modules/system/cleanup/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 modules/system/cleanup/default.nix (limited to 'modules/system/cleanup/default.nix') diff --git a/modules/system/cleanup/default.nix b/modules/system/cleanup/default.nix new file mode 100644 index 00000000..4e192f7d --- /dev/null +++ b/modules/system/cleanup/default.nix @@ -0,0 +1,18 @@ +{ + config, + lib, + ... +}: let + cfg = config.soispha.cleanup; +in { + # remove all the bloat, which NixOS installs by default + options.soispha.cleanup = { + enable = lib.mkEnableOption "avoiding of nixos' default installed packages"; + }; + + config = lib.mkIf cfg.enable { + environment = { + defaultPackages = lib.mkForce []; + }; + }; +} -- cgit 1.4.1