diff --git a/hosts/pinwheel/modules/c/default.nix b/hosts/pinwheel/modules/c/default.nix new file mode 100644 index 0000000..845773d --- /dev/null +++ b/hosts/pinwheel/modules/c/default.nix @@ -0,0 +1,17 @@ +{ pkgs, lib, config, ... }: +let + enabled = config.mod.c.enable; +in +{ + options = { + mod.c = { + enable = lib.mkEnableOption "enable c module"; + }; + }; + + config = lib.mkIf enabled { + home-manager.users.alex = { + home.packages = [ pkgs.ccls ]; + }; + }; +} diff --git a/hosts/pinwheel/modules/default.nix b/hosts/pinwheel/modules/default.nix index e51ceea..65b12a7 100644 --- a/hosts/pinwheel/modules/default.nix +++ b/hosts/pinwheel/modules/default.nix @@ -23,6 +23,7 @@ in zsh.enable = true; openvpn.enable = true; + c.enable = true; go.enable = true; rust.enable = true; scala.enable = true;