add wsl, add build default script

This commit is contained in:
Thilo Billerbeck 2023-09-11 01:28:30 +02:00
parent 593a044fe4
commit 83585a16da
2 changed files with 19 additions and 0 deletions

16
machines/wsl.nix Normal file
View file

@ -0,0 +1,16 @@
{ config, pkgs, lib, ... }:
{
imports = [
./../modules/machine.nix
];
machine = {
username = "thilo";
isGeneric = true;
nixPackage = pkgs.nixUnstable;
isGnome = false;
noiseSuppression.enable = false;
isGraphical = false;
};
}

View file

@ -54,6 +54,9 @@ in {
(pkgs.writeShellScriptBin "http-server" '' (pkgs.writeShellScriptBin "http-server" ''
${pkgs.caddy}/bin/caddy file-server --listen :2345 ${pkgs.caddy}/bin/caddy file-server --listen :2345
'') '')
(pkgs.writeShellScriptBin "nix-build-default" ''
nix-build -E 'with import <nixpkgs> { }; callPackage ./default.nix { }'
'')
(callPackage ./../pkgs/docker-craft-cms-dev-env.nix { (callPackage ./../pkgs/docker-craft-cms-dev-env.nix {
inherit lib; inherit lib;
}) })