Files
nix/templates/default/flake.nix
2022-09-02 15:44:36 -04:00

27 lines
622 B
Nix

{
description = "A very basic flake";
inputs = {
sbrow.url = "github:sbrow/nix";
};
outputs = { self, nixpkgs, sbrow }: {
nixosModules.default = { config, nixpkgs, ... }: {
config = {
environment.systemPackages = with nixpkgs; [ git ];
/* Your config here */
};
};
# A Vagrant box for testing
nixosConfigurations.vagrant = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
(nixpkgs + "/nixos/modules/virtualisation/virtualbox-image.nix")
sbrow.nixosModules.vagrant
self.nixosModules.default
];
};
};
}