add nix run
This commit is contained in:
parent
d8449c60c5
commit
1ab33067a8
4 changed files with 13 additions and 8 deletions
10
flake.nix
10
flake.nix
|
|
@ -6,16 +6,24 @@
|
|||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
pkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||
start =
|
||||
pkgs.writeShellScriptBin "start" ''
|
||||
set -e
|
||||
export QEMU_NET_OPTS="hostfwd=tcp::8080-:80,hostfwd=tcp::1433-:143,hostfwd=tcp::5877-:587"
|
||||
${pkgs.nixos-shell}/bin/nixos-shell vm-nextcloud.nix
|
||||
'';
|
||||
in
|
||||
{
|
||||
devShells.x86_64-linux.default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
phpPackages.composer
|
||||
phpPackages.phpunit
|
||||
phpunit
|
||||
nixos-shell
|
||||
nodejs
|
||||
];
|
||||
};
|
||||
packages = { inherit start; };
|
||||
defaultPackage = start;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue