mirror of
https://github.com/sbrow/nix.git
synced 2026-02-27 21:31:45 -05:00
feat: Added formatter to default template.
This commit is contained in:
@@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user