feat: Added formatter to default template.

This commit is contained in:
Spencer Brower
2022-09-02 15:53:16 -04:00
parent a2dee1af8b
commit ad596709a7
2 changed files with 26 additions and 18 deletions

View File

@@ -2,25 +2,33 @@
description = "A very basic flake";
inputs = {
# nixpkgs.url = "github:NixOS/nixpkgs/22.05";
sbrow.url = "github:sbrow/nix";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, sbrow }: {
nixosModules.default = { config, nixpkgs, ... }: {
config = {
environment.systemPackages = with nixpkgs; [ git ];
/* Your config here */
outputs = { self, nixpkgs, sbrow }:
flake-utils.lib.eachSystem flake-utils.lib.allSystems
(system: {
formatter = nixpkgs.legacyPackages.${system}.nixpkgs-fmt;
}) // {
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
];
};
};
# 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
];
};
};
}