pinwheel: Add c module
This commit is contained in:
17
hosts/pinwheel/modules/c/default.nix
Normal file
17
hosts/pinwheel/modules/c/default.nix
Normal file
@@ -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 ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -23,6 +23,7 @@ in
|
|||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
openvpn.enable = true;
|
openvpn.enable = true;
|
||||||
|
|
||||||
|
c.enable = true;
|
||||||
go.enable = true;
|
go.enable = true;
|
||||||
rust.enable = true;
|
rust.enable = true;
|
||||||
scala.enable = true;
|
scala.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user