commit 36e384eeaaad9c879b56fc50a024f0a229e6c5e9
parent e70ba7bc9ef1910696a71c0fd3d55a00416dacc1
Author: benjamin paul <bpaul@bpaul.xyz>
Date: Sat, 3 Jul 2021 16:53:47 +1000
c development module
Diffstat:
4 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/home/modules/dev/c.nix b/home/modules/dev/c.nix
@@ -0,0 +1,17 @@
+{ config, pkgs, lib, ... }:
+
+with lib;
+
+{
+ options.c = {
+ enable = mkEnableOption "C development";
+ };
+
+ config = mkIf config.c.enable {
+ # Other modules depend on whether this is enabled or not
+ home.packages = with pkgs; [
+ ccls
+ gcc
+ ];
+ };
+}
diff --git a/home/profiles/arch.nix b/home/profiles/arch.nix
@@ -18,6 +18,7 @@ in
enable = true;
font = "Hack Nerd Font";
};
+ c.enable = true;
dunst.enable = true;
haskell.enable = true;
latex.enable = true;
@@ -37,7 +38,6 @@ in
home.packages = [
# packages
- pkgs.ccls
pkgs.i3lock-color
pkgs.manpages
pkgs.tree-sitter
diff --git a/home/profiles/laptop.nix b/home/profiles/laptop.nix
@@ -13,7 +13,9 @@ in
];
alacritty.enable = true;
+ c.enable = true;
dunst.enable = true;
+ haskell.enable = true;
idris2.enable = true;
polybar.enable = true;
rofi.enable = true;
@@ -32,7 +34,6 @@ in
home.packages = with pkgs; [
# packages
- ccls
i3lock-color
manpages
tree-sitter
diff --git a/home/profiles/minimal.nix b/home/profiles/minimal.nix
@@ -27,6 +27,5 @@ in
home.packages = with pkgs; [
bc
fzf
- gcc
];
}