mirror of
https://github.com/sbrow/nix.git
synced 2026-02-27 21:31:45 -05:00
feat: Added a generic template.
This commit is contained in:
25
templates/default/flake.nix
Normal file
25
templates/default/flake.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
description = "A very basic flake";
|
||||
|
||||
inputs = {
|
||||
sbrow.url = "github:sbrow/nix";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, sbrow }: {
|
||||
nixosModules.default = { config, ... }: {
|
||||
config = {
|
||||
/* 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user