push
This commit is contained in:
16
modules/vm.nix
Normal file
16
modules/vm.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
# nix run .#vm
|
||||
|
||||
{ inputs, den, ... }: {
|
||||
den.aspects.nix.includes = [ (den.provides.tty-autologin "bug") ];
|
||||
|
||||
perSystem = { pkgs, ... }: {
|
||||
packages.vm = pkgs.writeShellApplication {
|
||||
name = "vm";
|
||||
text = let
|
||||
host = inputs.self.nixosConfigurations.nix.config;
|
||||
in ''
|
||||
${host.system.build.vm}/bin/run-${host.networking.hostName}-vm "$@"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user