Skip to content

Commit

Permalink
[DEV] .c/.cpp -> .c + rework & disable global .hs
Browse files Browse the repository at this point in the history
  • Loading branch information
Icy-Thought committed Dec 16, 2024
1 parent 9fef0d6 commit c1b6448
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 25 deletions.
3 changes: 1 addition & 2 deletions hosts/thinkpad-e595/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
services.ssh.enable = true;

develop = {
cc.enable = true;
c.enable = true;
python.enable = true;
rust.enable = true;
haskell.enable = true;
scientific.typst.enable = true;
};

Expand Down
20 changes: 20 additions & 0 deletions modules/develop/c.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{ options, config, lib, pkgs, ... }:

let
inherit (lib.attrsets) attrValues;
inherit (lib.modules) mkIf mkMerge;
in {
options.modules.develop.c = let inherit (lib.options) mkEnableOption;
in { enable = mkEnableOption "C development"; };

config = mkIf config.modules.develop.c.enable (mkMerge [
{
user.packages =
attrValues { inherit (pkgs) gcc gnumake gdb ninja clang-tools; };
}

(mkIf config.modules.develop.xdg.enable {
# TODO:
})
]);
}
23 changes: 0 additions & 23 deletions modules/develop/cc.nix

This file was deleted.

0 comments on commit c1b6448

Please sign in to comment.