CMU Coding Bootcamp

feat: new shell for HTML

thecoded.prof 20d13211 c69c17c6

verified
+14 -3
+14 -3
nilla.nix
··· 56 56 57 57 }; 58 58 }; 59 - shells.default = config.shells.ts; 59 + shells.default = config.shells.html; 60 60 shells.python = { 61 61 # Declare what systems the shell can be used on. 62 62 systems = [ "x86_64-linux" ]; ··· 123 123 ]; 124 124 }; 125 125 }; 126 - shells.none = { 126 + shells.html = { 127 127 systems = [ "x86_64-linux" ]; 128 128 129 129 shell = 130 130 { 131 + pkgs, 131 132 mkShell, 132 133 }: 133 134 mkShell { 134 135 shellHook = '' 135 - echo "hello" 136 + unset TMPDIR 137 + serve() { 138 + live-server /home/coded/Programming/CMU/html --port 5000 139 + } 140 + export -f serve 136 141 ''; 142 + packages = [ 143 + pkgs.emmet-language-server 144 + pkgs.nixd 145 + pkgs.nil 146 + pkgs.nodePackages.live-server 147 + ]; 137 148 }; 138 149 }; 139 150 };