c.nix (311B)
1 { config, pkgs, lib, ... }: 2 3 with lib; 4 5 { 6 options.c = { 7 enable = mkEnableOption "C development"; 8 }; 9 10 config = mkIf config.c.enable { 11 # Other modules depend on whether this is enabled or not 12 home.packages = with pkgs; [ 13 ccls 14 clang-tools 15 clang-manpages 16 gcc 17 ]; 18 }; 19 }