Update configuration files
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
0e55475d85
commit
f514cc25a0
2 changed files with 22 additions and 15 deletions
2
.envrc
2
.envrc
|
@ -1 +1 @@
|
||||||
use flake
|
use flake .
|
||||||
|
|
35
flake.nix
35
flake.nix
|
@ -1,19 +1,26 @@
|
||||||
{
|
{
|
||||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
inputs = {
|
||||||
|
devshell.url = "github:numtide/devshell";
|
||||||
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
};
|
||||||
|
|
||||||
outputs = inputs:
|
outputs =
|
||||||
let
|
inputs:
|
||||||
system = "x86_64-linux";
|
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
pkgs = import inputs.nixpkgs { inherit system; };
|
imports = [ inputs.devshell.flakeModule ];
|
||||||
in
|
|
||||||
{
|
systems = [ "x86_64-linux" ];
|
||||||
devShells.${system}.default =
|
|
||||||
with pkgs;
|
perSystem =
|
||||||
mkShell {
|
{ pkgs, ... }:
|
||||||
buildInputs = [
|
{
|
||||||
go
|
devshells.default = {
|
||||||
gopls
|
packages = with pkgs; [
|
||||||
];
|
go
|
||||||
|
gopls
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue