Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ leng.log
leng.toml
.DS_Store

result
result
*.qcow2
31 changes: 31 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,37 @@
];
};
};


# this is a simple NixOS VM that can be used for trying out the NixOS module outside of a NixOS test
nixosConfigurations.aarch-darwin-leng-test = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
self.nixosModules.default
{
virtualisation.vmVariant.virtualisation.graphics = false;
virtualisation.vmVariant.virtualisation.host.pkgs = nixpkgs.legacyPackages.aarch64-darwin;
services.getty.autologinUser = "root";
system.stateVersion = "24.11";
# fileSystems."/" = {
# device = "rpool/local/root";
# fsType = "zfs";
# };
networking.nameservers = [ "127.0.0.1" ];


services.leng = {
enable = true;
configuration = {
api = "127.0.0.1:8080";
metrics.enabled = true;
blocking.sourcesStore = "/var/lib/leng-sources";
upstream.doh = "https://1.1.1.1/dns-query";
};
};
}
];
};
};
}

Loading