Compare commits
2 commits
638efe918e
...
bb5b47ac95
Author | SHA1 | Date | |
---|---|---|---|
bb5b47ac95 | |||
9e0def2655 |
7 changed files with 56 additions and 7 deletions
|
@ -33,7 +33,7 @@ with config;
|
||||||
termius
|
termius
|
||||||
obsidian
|
obsidian
|
||||||
jetbrains.datagrip
|
jetbrains.datagrip
|
||||||
# talosctl
|
talosctl
|
||||||
|
|
||||||
# cli
|
# cli
|
||||||
brightnessctl
|
brightnessctl
|
||||||
|
|
|
@ -4,15 +4,20 @@ let
|
||||||
inherit (inputs.nixpkgs) lib;
|
inherit (inputs.nixpkgs) lib;
|
||||||
};
|
};
|
||||||
termiusOverlay = import ./termius { };
|
termiusOverlay = import ./termius { };
|
||||||
talosctlOverlay = import ./talosctl { };
|
# Partial overlay
|
||||||
|
# talosctlOverlay = import ./talosctl { };
|
||||||
|
# Full overlay
|
||||||
|
talosctlOverlay = self: super: {
|
||||||
|
talosctl = super.callPackage ./talosctl/talosctl-custom.nix { };
|
||||||
|
};
|
||||||
goOverlay = import ./go { };
|
goOverlay = import ./go { };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nur = inputs.nur.overlay;
|
nur = inputs.nur.overlay;
|
||||||
warp-terminal = warpTerminalOverlay;
|
warp-terminal = warpTerminalOverlay;
|
||||||
termius = termiusOverlay;
|
termius = termiusOverlay;
|
||||||
# talosctl = talosctlOverlay;
|
talosctl = talosctlOverlay;
|
||||||
# go = goOverlay;
|
go = goOverlay;
|
||||||
|
|
||||||
# The unstable nixpkgs set (declared in the flake inputs) will
|
# The unstable nixpkgs set (declared in the flake inputs) will
|
||||||
# be accessible through 'pkgs.unstable'
|
# be accessible through 'pkgs.unstable'
|
||||||
|
|
|
@ -3,7 +3,7 @@ let
|
||||||
finalVersion = "1.22.4";
|
finalVersion = "1.22.4";
|
||||||
in
|
in
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
go = prev.go.overrideAttrs (oldAttrs: {
|
go_1_22 = prev.go_1_22.overrideAttrs (oldAttrs: {
|
||||||
version = finalVersion;
|
version = finalVersion;
|
||||||
src = prev.fetchurl {
|
src = prev.fetchurl {
|
||||||
url = "https://go.dev/dl/go${finalVersion}.src.tar.gz";
|
url = "https://go.dev/dl/go${finalVersion}.src.tar.gz";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ ...}:
|
{ ... }:
|
||||||
let
|
let
|
||||||
finalVersion = "1.7.5";
|
finalVersion = "1.7.5";
|
||||||
in
|
in
|
||||||
|
@ -11,6 +11,7 @@ in
|
||||||
rev = "v${finalVersion}";
|
rev = "v${finalVersion}";
|
||||||
hash = "sha256-lmDLlxiPyVhlSPplYkIaS5Uw19hir6XD8MAk8q+obhY=";
|
hash = "sha256-lmDLlxiPyVhlSPplYkIaS5Uw19hir6XD8MAk8q+obhY=";
|
||||||
};
|
};
|
||||||
|
vendorHash = "sha256-8UIey+r1tdVRN1RBK5xxcAzaHb0VFdgenUXSFgoWh1g=";
|
||||||
passthru = oldAttrs.passthru // {
|
passthru = oldAttrs.passthru // {
|
||||||
updateScript = ./update.sh;
|
updateScript = ./update.sh;
|
||||||
};
|
};
|
||||||
|
|
43
nixos/overlays/talosctl/talosctl-custom.nix
Normal file
43
nixos/overlays/talosctl/talosctl-custom.nix
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
{ lib, buildGo122Module, fetchFromGitHub, installShellFiles }:
|
||||||
|
|
||||||
|
buildGo122Module rec {
|
||||||
|
pname = "talosctl";
|
||||||
|
version = "1.7.5";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "siderolabs";
|
||||||
|
repo = "talos";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-lmDLlxiPyVhlSPplYkIaS5Uw19hir6XD8MAk8q+obhY=";
|
||||||
|
};
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = ./update.sh;
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorHash = "sha256-8UIey+r1tdVRN1RBK5xxcAzaHb0VFdgenUXSFgoWh1g=";
|
||||||
|
|
||||||
|
ldflags = [ "-s" "-w" ];
|
||||||
|
|
||||||
|
env.GOWORK = "off";
|
||||||
|
|
||||||
|
subPackages = [ "cmd/talosctl" ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installShellCompletion --cmd talosctl \
|
||||||
|
--bash <($out/bin/talosctl completion bash) \
|
||||||
|
--fish <($out/bin/talosctl completion fish) \
|
||||||
|
--zsh <($out/bin/talosctl completion zsh)
|
||||||
|
'';
|
||||||
|
|
||||||
|
doCheck = false; # no tests
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "CLI for out-of-band management of Kubernetes nodes created by Talos";
|
||||||
|
mainProgram = "talosctl";
|
||||||
|
homepage = "https://www.talos.dev/";
|
||||||
|
license = licenses.mpl20;
|
||||||
|
maintainers = with maintainers; [ flokli ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -18,6 +18,7 @@ with config;
|
||||||
nixpkgs-fmt
|
nixpkgs-fmt
|
||||||
statix
|
statix
|
||||||
gh
|
gh
|
||||||
|
go
|
||||||
|
|
||||||
# bind # for dns utils like named-checkconf
|
# bind # for dns utils like named-checkconf
|
||||||
inputs.nix-inspect.packages.${pkgs.system}.default
|
inputs.nix-inspect.packages.${pkgs.system}.default
|
||||||
|
|
|
@ -17,7 +17,6 @@ pkgs.mkShell {
|
||||||
NIX_CONFIG = "experimental-features = nix-command flakes";
|
NIX_CONFIG = "experimental-features = nix-command flakes";
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
buildPackages.go_1_22
|
|
||||||
nix
|
nix
|
||||||
home-manager
|
home-manager
|
||||||
git
|
git
|
||||||
|
|
Loading…
Reference in a new issue