mirror of
https://github.com/sbrow/nix.git
synced 2026-02-27 13:21:45 -05:00
feat: Updated flakes for 2024.
This commit is contained in:
32
templates/default/Vagrantfile
vendored
32
templates/default/Vagrantfile
vendored
@@ -1,32 +0,0 @@
|
|||||||
# -*- mode: ruby -*-
|
|
||||||
# vi: set ft=ruby :
|
|
||||||
|
|
||||||
Vagrant.configure("2") do |config|
|
|
||||||
config.vm.box = "nixos"
|
|
||||||
|
|
||||||
# Disable automatic box update checking. If you disable this, then
|
|
||||||
# boxes will only be checked for updates when the user runs
|
|
||||||
# `vagrant box outdated`. This is not recommended.
|
|
||||||
# config.vm.box_check_update = false
|
|
||||||
|
|
||||||
# config.vm.network "forwarded_port", guest: 80, host: 80
|
|
||||||
# config.vm.network "forwarded_port", guest: 443, host: 443
|
|
||||||
config.vm.network "private_network", ip: "192.168.56.44", auto_config: false
|
|
||||||
# config.vm.network "public_network"
|
|
||||||
|
|
||||||
config.vm.provider "virtualbox" do |vb|
|
|
||||||
# Display the VirtualBox GUI when booting the machine
|
|
||||||
vb.gui = false
|
|
||||||
|
|
||||||
# Customize the amount of memory on the VM:
|
|
||||||
# vb.memory = 4 * 1024
|
|
||||||
|
|
||||||
# vb.cpus = 2;
|
|
||||||
end
|
|
||||||
|
|
||||||
config.vm.provision "shell", inline: <<-SHELL
|
|
||||||
# nix develop 'nixpkgs#git' --command "sudo nixos-rebuild switch --flake /vagrant#vagrant"
|
|
||||||
nix-shell -p git --command "sudo nixos-rebuild switch --flake /vagrant#vagrant"
|
|
||||||
SHELL
|
|
||||||
end
|
|
||||||
|
|
||||||
@@ -2,25 +2,26 @@
|
|||||||
description = "A very basic flake";
|
description = "A very basic flake";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
# nixpkgs.url = "github:NixOS/nixpkgs/23.05";
|
# nixpkgs.url = "github:NixOS/nixpkgs/23.11";
|
||||||
|
|
||||||
sbrow.url = "github:sbrow/nix";
|
sbrow.url = "github:sbrow/nix";
|
||||||
|
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, flake-utils, nixpkgs, sbrow }:
|
outputs = inputs@{ self, flake-parts, nixpkgs, sbrow }:
|
||||||
flake-utils.lib.eachSystem flake-utils.lib.allSystems
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
(system:
|
systems = [ "x86_64-linux" ];
|
||||||
let pkgs = nixpkgs.legacyPackages.${system}; in
|
|
||||||
{
|
|
||||||
formatter = pkgs.nixpkgs-fmt;
|
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell
|
perSystem = { pkgs, system, ... }: {
|
||||||
{
|
formatter = pkgs.nixpkgs-fmt;
|
||||||
buildInputs = with pkgs; [
|
|
||||||
# Your packages here
|
devShells.default = pkgs.mkShell
|
||||||
];
|
{
|
||||||
};
|
buildInputs = with pkgs; [
|
||||||
});
|
# Your packages here
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
2
templates/nodejs/.gitignore
vendored
2
templates/nodejs/.gitignore
vendored
@@ -1,2 +1,4 @@
|
|||||||
.direnv
|
.direnv
|
||||||
|
.vagrant
|
||||||
node_modules
|
node_modules
|
||||||
|
vendor
|
||||||
|
|||||||
@@ -2,21 +2,26 @@
|
|||||||
description = "A very basic flake";
|
description = "A very basic flake";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
# nixpkgs.url = "github:NixOS/nixpkgs/23.11";
|
||||||
# nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
|
|
||||||
|
sbrow.url = "github:sbrow/nix";
|
||||||
|
|
||||||
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, flake-utils, nixpkgs }: flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
|
outputs = inputs@{ self, flake-parts, nixpkgs, sbrow }:
|
||||||
let
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
systems = [ "x86_64-linux" ];
|
||||||
in
|
|
||||||
{
|
|
||||||
formatter = pkgs.nixpkgs-fmt;
|
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
perSystem = { pkgs, system, ... }: {
|
||||||
buildInputs = with pkgs; [
|
formatter = pkgs.nixpkgs-fmt;
|
||||||
yarn
|
|
||||||
];
|
devShells.default = pkgs.mkShell
|
||||||
|
{
|
||||||
|
buildInputs = with pkgs; [
|
||||||
|
yarn
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,25 +1,33 @@
|
|||||||
{
|
{
|
||||||
description = "A basic php setup for local development";
|
description = "A very basic flake";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
# nixpkgs.url = "github:NixOS/nixpkgs/23.11";
|
||||||
# nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
|
# phps.url = "github:fossar/nix-phps";
|
||||||
|
# phps.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
sbrow.url = "github:sbrow/nix";
|
||||||
|
|
||||||
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, flake-utils, nixpkgs }: flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
|
outputs = inputs@{ self, flake-parts, nixpkgs, /* phps, */ sbrow }:
|
||||||
let
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
systems = [ "x86_64-linux" ];
|
||||||
in
|
|
||||||
{
|
|
||||||
formatter = pkgs.nixpkgs-fmt;
|
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
perSystem = { pkgs, system, ... }:
|
||||||
packages = with pkgs; [
|
/* let phpPkgs = phps.legacyPackages.${system}; in */ {
|
||||||
caddy
|
formatter = pkgs.nixpkgs-fmt;
|
||||||
foreman
|
|
||||||
php
|
devShells.default = pkgs.mkShell
|
||||||
phpPackages.composer
|
{
|
||||||
];
|
buildInputs = with pkgs; [
|
||||||
|
caddy
|
||||||
|
foreman
|
||||||
|
php
|
||||||
|
phpPackages.composer
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user