Compare commits
No commits in common. "2c0e68ef9cda9cd0c977e9168c7788fb64ba1cbc" and "3fd1bb904495388c35741073fdcff8cb879891fb" have entirely different histories.
2c0e68ef9c
...
3fd1bb9044
6 changed files with 11 additions and 26 deletions
|
@ -1,19 +1,10 @@
|
||||||
# Build images based on your generated configurations
|
# Build a virtual machine based on your generated configurations
|
||||||
|
|
||||||
Your Nix configurations are located in the `inventory` folder you can build and run the configuration file you want by running nixos-generate from the NixiN root folder. If the build succeeds, the last output is a command located in your nix store to run your vm.
|
Your Nix configurations are located in the `inventory` folder you can build and run the configuration file you want by running from the NixiN root folder, for example for the demo configuration file:
|
||||||
|
|
||||||
## Images formats
|
|
||||||
|
|
||||||
Check <https://github.com/nix-community/nixos-generators?tab=readme-ov-file#supported-formats> to find available formats.
|
|
||||||
|
|
||||||
For example, for qemu-kvm runner
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nixos-generate -c inventory/demo-configuration.nix -f vm
|
nix-build '<nixpkgs/nixos>' -A vm -I nixpkgs=channel:nixos-24.05 -I nixos-config=./inventory/demo-configuration.nix
|
||||||
|
./result/bin/run-nixos-vm
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
(nixos-generate is installed by nix-shell, check `shell.nix` to see the packages added)
|
|
||||||
|
|
||||||
## Cross compile
|
|
||||||
|
|
||||||
Check <https://github.com/nix-community/nixos-generators?tab=readme-ov-file#cross-compiling>.
|
|
||||||
|
|
|
@ -87,6 +87,9 @@ export default {
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "{{ networkingHostname }}";
|
hostName = "{{ networkingHostname }}";
|
||||||
domain = "{{ networkingDomain }}";
|
domain = "{{ networkingDomain }}";
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
virtualisation.vmVariant.virtualisation.forwardPorts = [
|
virtualisation.vmVariant.virtualisation.forwardPorts = [
|
||||||
{ from = "host"; host.port = 8001; guest.port = 8001; }
|
{ from = "host"; host.port = 8001; guest.port = 8001; }
|
||||||
];
|
];
|
||||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,11 +1,9 @@
|
||||||
{
|
{
|
||||||
"name": "NixiN",
|
"name": "nixin-web",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "NixiN",
|
|
||||||
"license": "AGPL-3.0",
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vitepress": "^1.3.3"
|
"vitepress": "^1.3.3"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
{
|
{
|
||||||
"name": "NixiN",
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "git+https://git.distrilab.fr/NixiN/nixin-web.git"
|
|
||||||
},
|
|
||||||
"license": "AGPL-3.0",
|
|
||||||
"homepage": "https://nixin.distrilab.eu",
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"docs:dev": "vitepress dev",
|
"docs:dev": "vitepress dev",
|
||||||
"docs:build": "vitepress build",
|
"docs:build": "vitepress build",
|
||||||
|
|
|
@ -8,7 +8,5 @@ stdenv.mkDerivation {
|
||||||
];
|
];
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export PATH="$PWD/node_modules/.bin/:$PATH"
|
export PATH="$PWD/node_modules/.bin/:$PATH"
|
||||||
npm install
|
|
||||||
npm run
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue