configuration.nix/flake-modules/example-vm.nix
Jalil David Salamé Messina ecc37b8fc3
All checks were successful
/ check (push) Successful in 8s
/ check-renovaterc (push) Successful in 3s
/ build-packages (push) Successful in 13s
/ build-vm (push) Successful in 1s
/ report-size (push) Successful in 3s
refactor(example-vm): don't import nixpkgs
This should save on evaluation time.
2025-04-21 21:02:28 +02:00

18 lines
534 B
Nix

{ inputs, lib, ... }:
{
# Example vm configuration
flake.nixosConfigurations.vm = lib.nixosSystem {
modules = [
inputs.self.nixosModules.default
../example-vm # import vm configuration
{
nixpkgs = {
overlays = builtins.attrValues inputs.self.overlays;
config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "steam-unwrapped" ];
};
# pin nixpkgs to the one used by the system
nix.registry.nixpkgs.flake = inputs.nixpkgs;
}
];
};
}