Modular, context-aware and aspect-oriented dendritic Nix configurations.
Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/
den.oeiuwq.com
configurations
den
dendritic
nix
aspect
oriented
1# enables `nix run .#vm`. it is very useful to have a VM
2# you can edit your config and launch the VM to test stuff
3# instead of having to reboot each time.
4{ inputs, den, ... }:
5{
6
7 # USER TODO: remove this tty-autologin used for the VM
8 den.aspects.igloo.includes = [ (den.provides.tty-autologin "tux") ];
9
10 perSystem =
11 { pkgs, ... }:
12 {
13 packages.vm = pkgs.writeShellApplication {
14 name = "vm";
15 text =
16 let
17 host = inputs.self.nixosConfigurations.igloo.config;
18 in
19 ''
20 ${host.system.build.vm}/bin/run-${host.networking.hostName}-vm "$@"
21 '';
22 };
23 };
24}