mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 16:04:25 +01:00
Use specific nixpkgs pin for Hashicorp stuff
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
13dc074960
commit
3f7585af77
32
flake.lock
32
flake.lock
|
@ -752,6 +752,38 @@
|
|||
"type": "sourcehut"
|
||||
}
|
||||
},
|
||||
"nixpkgs-firefox": {
|
||||
"locked": {
|
||||
"lastModified": 1680213900,
|
||||
"narHash": "sha256-cIDr5WZIj3EkKyCgj/6j3HBH4Jj1W296z7HTcWj1aMA=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e3652e0735fbec227f342712f180f4f21f0594f2",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-hashicorp": {
|
||||
"locked": {
|
||||
"lastModified": 1680213900,
|
||||
"narHash": "sha256-cIDr5WZIj3EkKyCgj/6j3HBH4Jj1W296z7HTcWj1aMA=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e3652e0735fbec227f342712f180f4f21f0594f2",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-lib": {
|
||||
"locked": {
|
||||
"dir": "lib",
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
nixpkgs-stable.url = "github:NixOS/nixpkgs?ref=nixos-22.11";
|
||||
nixpkgs.url = "sourcehut:~magic_rb/nixpkgs";
|
||||
nixpkgs-master.url = "github:NixOS/nixpkgs?ref=master";
|
||||
nixpkgs-hashicorp.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
|
||||
nixpkgs-firefox.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
|
||||
|
||||
nixinate.url = "github:MagicRB/nixinate";
|
||||
nixinate.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
|
@ -1,19 +1,26 @@
|
|||
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
|
||||
#
|
||||
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
{...}: {
|
||||
perSystem = {pkgs, ...}: {
|
||||
devShells.default = pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
lefthook
|
||||
alejandra
|
||||
reuse
|
||||
terraform
|
||||
vault
|
||||
nomad
|
||||
consul
|
||||
dnsutils
|
||||
];
|
||||
};
|
||||
};
|
||||
{ inputs, ... }:
|
||||
{
|
||||
perSystem = {pkgs, ...}:
|
||||
let
|
||||
pkgs-hashicorp = inputs.nixpkgs-hashicorp.legacyPackages.${pkgs.stdenv.system};
|
||||
in
|
||||
{
|
||||
devShells.default = pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
lefthook
|
||||
alejandra
|
||||
reuse
|
||||
pkgs-hashicorp.vault
|
||||
pkgs-hashicorp.nomad
|
||||
pkgs-hashicorp.consul
|
||||
dnsutils
|
||||
qemu_kvm
|
||||
usbutils
|
||||
jq
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ in
|
|||
extraSettingsPaths =
|
||||
[ "/run/secrets/consul.json"
|
||||
];
|
||||
package = pkgs.callPackage ("${inputs.nixpkgs-master}/pkgs/servers/consul/default.nix") {};
|
||||
package = inputs.nixpkgs-hashicorp.legacyPackages.${pkgs.stdenv.system}.consul;
|
||||
|
||||
settings = {
|
||||
datacenter = "homelab-1";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{lib, config, pkgs, secret, ...}:
|
||||
{inputs, lib, config, pkgs, secret, ...}:
|
||||
with lib;
|
||||
let
|
||||
in
|
||||
|
@ -38,7 +38,7 @@ in
|
|||
extraSettingsPaths = [
|
||||
"/run/secrets/nomad.json"
|
||||
];
|
||||
package = pkgs.nomad_1_3.overrideAttrs (old:
|
||||
package = inputs.nixpkgs-hashicorp.legacyPackages.${pkgs.stdenv.system}.nomad_1_4.overrideAttrs (old:
|
||||
{
|
||||
patches = [
|
||||
../0001-Revert-Change-consul-SI-tokens-to-be-local.patch
|
||||
|
|
|
@ -9,7 +9,7 @@ in
|
|||
extraSettingsPaths =
|
||||
[ "/run/secrets/consul.json"
|
||||
];
|
||||
package = pkgs.callPackage ("${inputs.nixpkgs-master}/pkgs/servers/consul/default.nix") {};
|
||||
package = inputs.nixpkgs-hashicorp.legacyPackages.${pkgs.stdenv.system}.consul;
|
||||
|
||||
settings = {
|
||||
datacenter = "do-1";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{lib, config, pkgs, secret, ...}:
|
||||
{lib, config, pkgs, inputs, secret, ...}:
|
||||
with lib;
|
||||
let
|
||||
in
|
||||
|
@ -10,7 +10,7 @@ in
|
|||
extraSettingsPaths = [
|
||||
"/run/secrets/nomad.json"
|
||||
];
|
||||
package = pkgs.nomad_1_3.overrideAttrs (old:
|
||||
package = inputs.nixpkgs-hashicorp.legacyPackages.${pkgs.stdenv.system}.nomad_1_4.overrideAttrs (old:
|
||||
{
|
||||
patches = [
|
||||
../0001-Revert-Change-consul-SI-tokens-to-be-local.patch
|
||||
|
|
Loading…
Reference in a new issue