mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2024-11-22 16:08:50 +01:00
add wsl, add build default script
This commit is contained in:
parent
593a044fe4
commit
83585a16da
2 changed files with 19 additions and 0 deletions
16
machines/wsl.nix
Normal file
16
machines/wsl.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -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;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue