diff --git a/flake.nix b/flake.nix index f33946b..3219c79 100644 --- a/flake.nix +++ b/flake.nix @@ -96,6 +96,7 @@ { devShells = { bun = import ./hosts/common/shells/bun { inherit pkgs; }; + c = import ./hosts/common/shells/c { inherit pkgs; }; go = import ./hosts/common/shells/go { inherit pkgs; }; java = import ./hosts/common/shells/java { inherit pkgs; }; nix = import ./hosts/common/shells/nix { inherit pkgs; }; diff --git a/hosts/common/shells/c/default.nix b/hosts/common/shells/c/default.nix new file mode 100644 index 0000000..477e315 --- /dev/null +++ b/hosts/common/shells/c/default.nix @@ -0,0 +1,8 @@ +{ pkgs, ... }: +pkgs.mkShell { + packages = with pkgs; [ + gcc + cmake + gnumake + ]; +} diff --git a/hosts/elara/users/nikara/configs/console/c/default.nix b/hosts/elara/users/nikara/configs/console/c/default.nix new file mode 100644 index 0000000..0d1aabb --- /dev/null +++ b/hosts/elara/users/nikara/configs/console/c/default.nix @@ -0,0 +1,12 @@ +{ + user ? throw "user argument is required", + home ? throw "home argument is required", +}: +{ pkgs, ... }: +{ + home-manager.users.${user}.home.packages = with pkgs; [ + gcc + cmake + gnumake + ]; +} diff --git a/hosts/elara/users/nikara/default.nix b/hosts/elara/users/nikara/default.nix index 797da5a..5a6742a 100644 --- a/hosts/elara/users/nikara/default.nix +++ b/hosts/elara/users/nikara/default.nix @@ -67,6 +67,7 @@ in (import ../../../common/configs/user/gui/x11 { inherit user home; }) (import ../../../common/configs/user/gui/xdg { inherit user home; }) + (import ./configs/console/c { inherit user home; }) (import ./configs/console/docker { inherit user home; }) (import ./configs/console/git { inherit user home; }) (import ./configs/console/go { inherit user home; })