Compare commits
2 commits
a27cac9e4b
...
17ac35e4af
Author | SHA1 | Date | |
---|---|---|---|
17ac35e4af | |||
0607896460 |
3 changed files with 97 additions and 84 deletions
36
.vscode/settings.json
vendored
36
.vscode/settings.json
vendored
|
@ -1,20 +1,20 @@
|
||||||
{
|
{
|
||||||
"editor.fontFamily": "FiraCode Nerd Font",
|
"editor.fontFamily": "FiraCode Nerd Font",
|
||||||
"editor.hover.delay": 1500,
|
"editor.hover.delay": 1500,
|
||||||
"editor.bracketPairColorization.enabled": true,
|
"editor.bracketPairColorization.enabled": true,
|
||||||
"editor.guides.bracketPairs": true,
|
"editor.guides.bracketPairs": true,
|
||||||
"editor.guides.bracketPairsHorizontal": true,
|
"editor.guides.bracketPairsHorizontal": true,
|
||||||
"editor.guides.highlightActiveBracketPair": true,
|
"editor.guides.highlightActiveBracketPair": true,
|
||||||
"files.trimTrailingWhitespace": true,
|
"files.trimTrailingWhitespace": true,
|
||||||
"sops.defaults.ageKeyFile": "age.key",
|
"sops.defaults.ageKeyFile": "age.key",
|
||||||
"nix.enableLanguageServer": true,
|
"nix.enableLanguageServer": true,
|
||||||
"nix.serverPath": "/run/current-system/sw/bin/nil",
|
"nix.serverPath": "/run/current-system/sw/bin/nixd",
|
||||||
"nix.formatterPath": "/run/current-system/sw/bin/nixpkgs-fmt",
|
"nix.formatterPath": "/run/current-system/sw/bin/nixfmt",
|
||||||
"nix.serverSettings": {
|
"nix.serverSettings": {
|
||||||
"nil": {
|
"nixd": {
|
||||||
"formatting": {
|
"formatting": {
|
||||||
"command": ["nixpkgs-fmt"]
|
"command": ["nixfmt"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,47 +1,49 @@
|
||||||
{ pkgs, config, inputs, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
coderMainline = pkgs.coder.override { channel = "mainline"; };
|
coderMainline = pkgs.coder.override { channel = "mainline"; };
|
||||||
in
|
in
|
||||||
with config;
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./global.nix
|
./global.nix
|
||||||
inputs.krewfile.homeManagerModules.krewfile
|
inputs.krewfile.homeManagerModules.krewfile
|
||||||
];
|
];
|
||||||
|
config = {
|
||||||
# Krewfile management
|
# Krewfile management
|
||||||
programs.krewfile = {
|
programs.krewfile = {
|
||||||
enable = true;
|
enable = true;
|
||||||
krewPackage = pkgs.krew;
|
krewPackage = pkgs.krew;
|
||||||
indexes = {
|
indexes = {
|
||||||
"netshoot" = "https://github.com/nilic/kubectl-netshoot.git";
|
"netshoot" = "https://github.com/nilic/kubectl-netshoot.git";
|
||||||
|
};
|
||||||
|
plugins = [
|
||||||
|
"netshoot/netshoot"
|
||||||
|
"resource-capacity"
|
||||||
|
"rook-ceph"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
plugins = [
|
|
||||||
"netshoot/netshoot"
|
|
||||||
"resource-capacity"
|
|
||||||
"rook-ceph"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
myHome = {
|
myHome = {
|
||||||
programs.firefox.enable = true;
|
programs.firefox.enable = true;
|
||||||
programs.thunderbird.enable = true;
|
programs.thunderbird.enable = true;
|
||||||
shell = {
|
shell = {
|
||||||
wezterm.enable = true;
|
wezterm.enable = true;
|
||||||
|
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
username = "Joseph Hanson";
|
username = "Joseph Hanson";
|
||||||
email = "joe@veri.dev";
|
email = "joe@veri.dev";
|
||||||
signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIDSAmssproxG+KsVn2DfuteBAemHrmmAFzCtldpKl4J";
|
signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIDSAmssproxG+KsVn2DfuteBAemHrmmAFzCtldpKl4J";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
# Install these packages for my user
|
# Install these packages for my user
|
||||||
packages = with pkgs;
|
packages = with pkgs; [
|
||||||
[
|
|
||||||
# apps
|
# apps
|
||||||
obsidian
|
obsidian
|
||||||
parsec-bin
|
parsec-bin
|
||||||
|
@ -69,9 +71,11 @@ with config;
|
||||||
pre-commit # Pre-commit tasks for git
|
pre-commit # Pre-commit tasks for git
|
||||||
shellcheck # shell script linting
|
shellcheck # shell script linting
|
||||||
unstable.act # run GitHub actions locally
|
unstable.act # run GitHub actions locally
|
||||||
|
unstable.kubebuilder # k8s controller development
|
||||||
unstable.nodePackages_latest.prettier # code formatter
|
unstable.nodePackages_latest.prettier # code formatter
|
||||||
unstable.tailspin # logfile highlighter
|
unstable.tailspin # logfile highlighter
|
||||||
coderMainline # VSCode in the browser -- has overlay
|
coderMainline # VSCode in the browser -- has overlay
|
||||||
];
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,46 +1,55 @@
|
||||||
{ config, pkgs, inputs, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
# Role for dev stations
|
# Role for dev stations
|
||||||
# Could be a workstatio or a headless server.
|
# Could be a workstatio or a headless server.
|
||||||
|
|
||||||
with config;
|
|
||||||
{
|
{
|
||||||
# git & vim are in global
|
config = {
|
||||||
environment.systemPackages = with pkgs; [
|
# git & vim are in global
|
||||||
btop
|
environment.systemPackages = with pkgs; [
|
||||||
dnsutils
|
btop
|
||||||
fira-code-nerdfont
|
dnsutils
|
||||||
jo
|
fira-code-nerdfont
|
||||||
jq
|
jo
|
||||||
nix
|
jq
|
||||||
unstable.ncdu
|
nix
|
||||||
yq
|
unstable.ncdu
|
||||||
|
yq
|
||||||
|
|
||||||
# dev
|
# nix lsp/formatters
|
||||||
gh
|
nil
|
||||||
go
|
nixd
|
||||||
hadolint
|
nixpkgs-fmt
|
||||||
nil
|
unstable.nixfmt-rfc-style # nixfmt RFC 166-style compatible with nixpkgs soon
|
||||||
nixpkgs-fmt
|
|
||||||
shfmt
|
|
||||||
statix
|
|
||||||
tmux
|
|
||||||
unstable.cyme
|
|
||||||
unstable.helix
|
|
||||||
|
|
||||||
# flake imports
|
# dev
|
||||||
inputs.nix-inspect.packages.${pkgs.system}.default
|
gh
|
||||||
inputs.talhelper.packages.${pkgs.system}.default
|
go
|
||||||
|
hadolint
|
||||||
|
shfmt
|
||||||
|
statix
|
||||||
|
tmux
|
||||||
|
unstable.cyme
|
||||||
|
unstable.helix
|
||||||
|
|
||||||
# charmbracelet tools
|
# flake imports
|
||||||
gum
|
inputs.nix-inspect.packages.${pkgs.system}.default
|
||||||
vhs
|
inputs.talhelper.packages.${pkgs.system}.default
|
||||||
mods
|
|
||||||
soft-serve
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.direnv = {
|
# charmbracelet tools
|
||||||
# TODO move to home-manager
|
gum
|
||||||
enable = true;
|
vhs
|
||||||
nix-direnv.enable = true;
|
mods
|
||||||
|
soft-serve
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.direnv = {
|
||||||
|
# TODO move to home-manager
|
||||||
|
enable = true;
|
||||||
|
nix-direnv.enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue