Added k9s

This commit is contained in:
fwastring 2025-09-04 11:05:21 +02:00
parent d7bd96d68d
commit 1fc6785205
7 changed files with 36 additions and 13 deletions

14
CHEATSHEET.md Normal file
View file

@ -0,0 +1,14 @@
# Update Neovim
1. Update the version controlled code
2. Run:
```bash
nix flake lock --update-input nvim-config
```
3. Run:
```bash
home-manager switch --flake "/home/fw/nix#fw@jobb"
```

View file

@ -59,7 +59,6 @@ in
prettierd prettierd
qrencode qrencode
air air
unstable.k9s
git git
lazydocker lazydocker
gcc gcc

View file

@ -25,6 +25,7 @@
../shared/oh-my-posh.nix ../shared/oh-my-posh.nix
../shared/gtk.nix ../shared/gtk.nix
../shared/neovim.nix ../shared/neovim.nix
../shared/k9s.nix
# ../shared/hyprland.nix # ../shared/hyprland.nix
]; ];

View file

@ -13,6 +13,14 @@
# Home manager # Home manager
home-manager.url = "github:nix-community/home-manager/release-25.05"; home-manager.url = "github:nix-community/home-manager/release-25.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
nvim-config = {
url = "github:fwastring/nvim?exportIgnore=1";
flake = false;
};
k9s-config = {
url = "github:fwastring/k9s?exportIgnore=1";
flake = false;
};
}; };
outputs = outputs =

10
shared/k9s.nix Normal file
View file

@ -0,0 +1,10 @@
{ config, inputs, pkgs, ... }:
let
in
{
programs.k9s.enable = true;
xdg.configFile."k9s".source = inputs.k9s-config;
}

View file

@ -10,7 +10,7 @@
font = font =
{ {
name = "ComicShannsMono Nerd Font"; name = "ComicShannsMono Nerd Font";
size = 22; size = 12;
}; };
shellIntegration = { shellIntegration = {
mode = "no-cursor"; mode = "no-cursor";

View file

@ -1,22 +1,13 @@
{ config, pkgs, ... }: { config, inputs, pkgs, ... }:
let let
# Replace with the URL of your Neovim configuration GitHub repository
nvim-config = {
url = "github:fwastring/nvim?exportIgnore=1";
# Use a specific, locked commit hash here
# You can get this by running 'nix flake lock'
# after adding the input
flake = false; # Tell Nix this is not a flake
};
in in
{ {
# Enable the Home Manager Neovim module if you haven't already # Enable the Home Manager Neovim module if you haven't already
# programs.neovim.enable = true; # programs.neovim.enable = true;
# Create a symlink from the Nix store to the Neovim config directory # Create a symlink from the Nix store to the Neovim config directory
xdg.configFile."nvim".source = nvim-config; xdg.configFile."nvim".source = inputs.nvim-config;
# Other Home Manager options... # Other Home Manager options...
} }