Nixos-shell: Difference between revisions
imported>Onny No edit summary |
imported>Onny No edit summary |
||
| Line 56: | Line 56: | ||
description = "Spawns lightweight nixos vm in a shell"; | description = "Spawns lightweight nixos vm in a shell"; | ||
inputs | inputs = { | ||
nixpkgs.url = "nixpkgs/nixos-23.11"; | |||
nixos-shell.url = "github:Mic92/nixos-shell"; | |||
}; | |||
outputs = { self, nixpkgs }: let | outputs = { self, nixpkgs, nixos-shell }: let | ||
pkgs = nixpkgs.legacyPackages.x86_64-linux; | pkgs = nixpkgs.legacyPackages.x86_64-linux; | ||
start = | start = | ||
| Line 72: | Line 75: | ||
modules = [ | modules = [ | ||
(import ./myvm.nix) | (import ./myvm.nix) | ||
nixos-shell.nixosModules.nixos-shell | |||
]; | ]; | ||
}; | }; | ||
packages = { inherit start; }; | packages = { inherit start; }; | ||