From dd0995131a43dd31d8448a4506dc588f3afd8fbd Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Mon, 17 Jun 2024 13:59:25 +0200 Subject: [PATCH] pinwheel: Add `c` module --- hosts/pinwheel/modules/c/default.nix | 17 +++++++++++++++++ hosts/pinwheel/modules/default.nix | 1 + 2 files changed, 18 insertions(+) create mode 100644 hosts/pinwheel/modules/c/default.nix 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;