mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-01-19 02:13:06 +01:00
Jo
fde4abd59d
feat(module): add use-lix option to nix module feat(module): update fish config for catppuccin
38 lines
855 B
Nix
38 lines
855 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
inputs,
|
|
namespace,
|
|
config,
|
|
...
|
|
}: with lib; with lib.${namespace};
|
|
let
|
|
cfg = config.${namespace}.common.nix;
|
|
in {
|
|
options.${namespace}.common.nix = {
|
|
enable = mkEnableOption "Overwrite the default Nix configuration.";
|
|
use-lix = mkEnableOption "Enable Lix as an alternative to CppNix.";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
nix = {
|
|
settings = {
|
|
auto-optimise-store = true;
|
|
builders-use-substitutes = true;
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
keep-derivations = true;
|
|
keep-outputs = true;
|
|
max-jobs = "auto";
|
|
};
|
|
|
|
# Garbage collection configuration.
|
|
gc = {
|
|
automatic = true;
|
|
dates = "daily";
|
|
options = "--delete-older-than 3d";
|
|
};
|
|
|
|
package = mkIf cfg.use-lix pkgs.lix; # Enable LIX
|
|
};
|
|
};
|
|
}
|