added vm build

This commit is contained in:
Morten Olsen
2023-09-26 23:06:26 +02:00
parent c0aeb8ec57
commit d4cb33b54d
10 changed files with 144 additions and 2 deletions

View File

@@ -35,6 +35,24 @@
];
specialArgs = { inherit nixos-hardware home-manager; };
};
vm = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{ nixpkgs.overlays = [ nur.overlay ]; }
(import ./machines/vm/configuration.nix)
({
# Let 'nixos-version --json' know about the Git revision
# of this flake.
system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev;
})
({
# For compatibility with other things, puts nixpkgs into NIX_PATH
environment.etc.nixpkgs.source = nixpkgs;
nix.nixPath = ["nixpkgs=/etc/nixpkgs"];
})
];
specialArgs = { inherit nixos-hardware home-manager; };
};
};
};