Skip to content

Commit

Permalink
home: add dev module
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborpilz authored and Tibor Pilz committed Dec 19, 2023
1 parent abbd2e7 commit 9019a81
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ with mylib;
modules.editors.emacs.useNix = false;

modules.dev.rust.enable = true;
modules.dev.web.enable = true;

# Bit of a catch-all for LSP stuff until I find a better spot
# without having to create a new module for every one
Expand Down
23 changes: 23 additions & 0 deletions home/modules/dev/web.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{ inputs, pkgs, lib, config, ... }:

with lib;
let
cfg = config.modules.dev.web;
mylib = import ../../../lib { inherit inputs lib pkgs; };
in
with mylib;
{
options.modules.dev.web = {
enable = mkBoolOpt false;
};
config = lib.mkIf cfg.enable {
# Packages for web development, mostly for JavaScript
home.packages = with pkgs; [
unstable.bun
nodePackages.pnpm
nodePackages.yarn
nodePackages.prettier
nodePackages."@vue/cli"
];
};
}

0 comments on commit 9019a81

Please sign in to comment.