init
This commit is contained in:
21
flake.nix
Normal file
21
flake.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
# flake.nix
|
||||
{
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
outputs = { self, nixpkgs, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
test = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
./configuration.nix
|
||||
];
|
||||
};
|
||||
in {
|
||||
# Use `flake-config#test` with:
|
||||
# nixos-rebuild --flake .#test build-vm
|
||||
nixosConfigurations.test = test;
|
||||
|
||||
# Optional: expose VM script for `nix run .#vms.test`
|
||||
vms.test = test.config.system.build.vm;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user