mirror of
https://github.com/sbrow/nix.git
synced 2026-02-27 21:31:45 -05:00
feat: Added new default template that is devShell based.
This commit is contained in:
1
templates/default/.envrc
Normal file
1
templates/default/.envrc
Normal file
@@ -0,0 +1 @@
|
||||
use flake
|
||||
5
templates/default/.gitignore
vendored
5
templates/default/.gitignore
vendored
@@ -1 +1,4 @@
|
||||
.vagrant
|
||||
.direnv
|
||||
.vagrant
|
||||
node_modules
|
||||
vendor
|
||||
|
||||
@@ -11,24 +11,16 @@
|
||||
|
||||
outputs = { self, flake-utils, nixpkgs, sbrow }:
|
||||
flake-utils.lib.eachSystem flake-utils.lib.allSystems
|
||||
(system: {
|
||||
formatter = nixpkgs.legacyPackages.${system}.nixpkgs-fmt;
|
||||
}) // {
|
||||
nixosModules.default = { config, pkgs, ... }: {
|
||||
config = {
|
||||
environment.systemPackages = [ pkgs.git ];
|
||||
/* Your config here */
|
||||
};
|
||||
};
|
||||
(system:
|
||||
let pkgs = nixpkgs.legacyPackages.${system}; in
|
||||
{
|
||||
formatter = pkgs.nixpkgs-fmt;
|
||||
|
||||
# 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
|
||||
];
|
||||
};
|
||||
};
|
||||
devShells.default = pkgs.mkShell
|
||||
{
|
||||
buildInputs = with pkgs; [
|
||||
# Your packages here
|
||||
];
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user