Compare commits

...

7 commits

Author SHA1 Message Date
Sean Buckley
f2cd70f45e levi: add ollama comment 2024-10-26 02:45:41 -04:00
Sean Buckley
1be18ec39c re-enable wfuzz 2024-10-26 02:38:45 -04:00
Sean Buckley
e618ba481f merge kubernetes.nix into devtools.nix 2024-10-26 02:32:32 -04:00
Sean Buckley
a6dded78f8 move nvim dev tools to devtools.nix 2024-10-26 02:27:35 -04:00
Sean Buckley
592b767717 make new separate file for dev tools 2024-10-26 02:20:25 -04:00
Sean Buckley
79405643af flake.lock: Update
Flake lock file updates:

• Updated input 'impermanence':
    'github:nix-community/impermanence/d0b38e550039a72aff896ee65b0918e975e6d48e' (2024-09-29)
  → 'github:nix-community/impermanence/e337457502571b23e449bf42153d7faa10c0a562' (2024-10-16)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/5633bcff0c6162b9e4b5f1264264611e950c8ec7' (2024-10-09)
  → 'github:NixOS/nixpkgs/2768c7d042a37de65bb1b5b3268fc987e534c49d' (2024-10-23)
2024-10-26 02:13:03 -04:00
Sean Buckley
7f15791bfb switch from deprecated package names 2024-10-23 23:01:34 -04:00
18 changed files with 62 additions and 80 deletions

View file

@ -2,11 +2,11 @@
"nodes": {
"impermanence": {
"locked": {
"lastModified": 1727649413,
"narHash": "sha256-FA53of86DjFdeQzRDVtvgWF9o52rWK70VHGx0Y8fElQ=",
"lastModified": 1729068498,
"narHash": "sha256-C2sGRJl1EmBq0nO98TNd4cbUy20ABSgnHWXLIJQWRFA=",
"owner": "nix-community",
"repo": "impermanence",
"rev": "d0b38e550039a72aff896ee65b0918e975e6d48e",
"rev": "e337457502571b23e449bf42153d7faa10c0a562",
"type": "github"
},
"original": {
@ -17,11 +17,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1728492678,
"narHash": "sha256-9UTxR8eukdg+XZeHgxW5hQA9fIKHsKCdOIUycTryeVw=",
"lastModified": 1729665710,
"narHash": "sha256-AlcmCXJZPIlO5dmFzV3V2XF6x/OpNWUV8Y/FMPGd8Z4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"rev": "2768c7d042a37de65bb1b5b3268fc987e534c49d",
"type": "github"
},
"original": {

View file

@ -11,6 +11,14 @@ in
{ type = "ed25519"; path = "${persist}/ssh_host_ed25519_key"; }
];
# services.ollama = {
# enable = true;
# acceleration = "cuda";
# };
# programs.bash.interactiveShellInit = ''
# alias ai='ollama run llama3.1:8b'
# '';
sconfig = {
gnome = true;
desktop.enable = true;

View file

@ -1,7 +1,6 @@
{ lib, pkgs, ... }:
{
imports = [
./kubernetes.nix
./powerline.nix
];

View file

@ -1,18 +1,6 @@
{ pkgs, ... }:
{
programs.bash.interactiveShellInit = ''
source <(kubectl completion bash)
complete -F __start_kubectl k
'';
environment.systemPackages = with pkgs; [
kubectl
kubernetes-helm
stern
(google-cloud-sdk.withExtraComponents
[ google-cloud-sdk.components.gke-gcloud-auth-plugin ])
# dedicated script, because bash aliases dont work with `watch`
(writeShellScriptBin "k" "exec kubectl \"$@\"")
];
}

View file

@ -39,6 +39,7 @@ with lib;
};
sconfig = {
devtools.enable = true;
security-tools = true;
};
@ -58,7 +59,7 @@ with lib;
ffmpeg
gimp
glxinfo
gnome3.dconf-editor
dconf-editor
helvum
kdenlive
obs-studio

43
modules/devtools.nix Normal file
View file

@ -0,0 +1,43 @@
{ config, pkgs, lib, ... }:
let
cfg = config.sconfig.devtools;
in
{
options.sconfig.devtools.enable = lib.mkEnableOption "Development Tools";
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs;
[
black
cargo
efm-langserver
errcheck
go
gopls
kubectl
kubernetes-helm
lua-language-server
nil
nodePackages.prettier
nodePackages.typescript-language-server
pyright
rust-analyzer
rustc
rustc.llvmPackages.lld
rustfmt
stern
vscode-langservers-extracted
yaml-language-server
# dedicated script, because bash aliases dont work with `watch`
(writeShellScriptBin "k" "exec kubectl \"$@\"")
(google-cloud-sdk.withExtraComponents
[ google-cloud-sdk.components.gke-gcloud-auth-plugin ])
];
programs.bash.interactiveShellInit = ''
source <(kubectl completion bash)
complete -F __start_kubectl k
'';
};
}

View file

@ -20,7 +20,7 @@ in
systemd.services.packagekit.enable = false;
environment.systemPackages = with pkgs; [
gnome3.gnome-tweaks
gnome-tweaks
# https://github.com/ubuntu/gnome-shell-extension-appindicator/issues/441
# gnomeExtensions.appindicator

View file

@ -2,8 +2,7 @@
{
environment.variables.EDITOR = "hx";
environment.systemPackages = [
pkgs.bck-nvim-base
pkgs.bck-nvim-tools
pkgs.bck-nvim
];
users.users.sean = {

View file

@ -25,7 +25,7 @@ in
thc-hydra
webshells
weevely
# wfuzz # TODO: temporarily broken package
wfuzz
(runCommand "gdb" { } "install -D ${gef}/bin/gef $out/bin/gdb")
];

View file

@ -1,49 +0,0 @@
{ symlinkJoin
, runCommand
, black
, cargo
, efm-langserver
, errcheck
, go
, gopls
, lua-language-server
, nil
, nodePackages
, pyright
, rust-analyzer
, rustc
, rustfmt
, vscode-langservers-extracted
, yaml-language-server
}:
let
symlinkBin = path: runCommand "symlinkBin" { } ''
mkdir -p $out/bin
ln -s "${path}" $out/bin/
'';
in
symlinkJoin {
name = "bck-nvim-tools";
paths = [
black
cargo
efm-langserver
errcheck
go
gopls
lua-language-server
nil
pyright
rust-analyzer
rustc
rustfmt
vscode-langservers-extracted
yaml-language-server
(symlinkBin "${nodePackages.prettier}/bin/prettier")
(symlinkBin "${nodePackages.typescript-language-server}/bin/typescript-language-server")
];
}

View file

@ -1,7 +0,0 @@
{ callPackage }:
callPackage ./bck-nvim-base {
extraBinPaths = [
(callPackage ./bck-nvim-tools.nix { })
];
}