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:
4
templates/default/Vagrantfile
vendored
4
templates/default/Vagrantfile
vendored
@@ -25,8 +25,8 @@ Vagrant.configure("2") do |config|
|
|||||||
end
|
end
|
||||||
|
|
||||||
config.vm.provision "shell", inline: <<-SHELL
|
config.vm.provision "shell", inline: <<-SHELL
|
||||||
# nix develop 'nixpkgs#git' --command "sudo nixos-rebuild switch --flake /vagrant"
|
# nix develop 'nixpkgs#git' --command "sudo nixos-rebuild switch --flake /vagrant#vagrant"
|
||||||
nix-shell -p git --command "sudo nixos-rebuild switch --flake /vagrant"
|
nix-shell -p git --command "sudo nixos-rebuild switch --flake /vagrant#vagrant"
|
||||||
SHELL
|
SHELL
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -2,10 +2,18 @@
|
|||||||
description = "A very basic flake";
|
description = "A very basic flake";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
|
# nixpkgs.url = "github:NixOS/nixpkgs/22.05";
|
||||||
|
|
||||||
sbrow.url = "github:sbrow/nix";
|
sbrow.url = "github:sbrow/nix";
|
||||||
|
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, sbrow }: {
|
outputs = { self, nixpkgs, sbrow }:
|
||||||
|
flake-utils.lib.eachSystem flake-utils.lib.allSystems
|
||||||
|
(system: {
|
||||||
|
formatter = nixpkgs.legacyPackages.${system}.nixpkgs-fmt;
|
||||||
|
}) // {
|
||||||
nixosModules.default = { config, nixpkgs, ... }: {
|
nixosModules.default = { config, nixpkgs, ... }: {
|
||||||
config = {
|
config = {
|
||||||
environment.systemPackages = with nixpkgs; [ git ];
|
environment.systemPackages = with nixpkgs; [ git ];
|
||||||
|
|||||||
Reference in New Issue
Block a user