add in chanages to match existing helix config

This commit is contained in:
Tyler Mac
2026-08-19 18:27:17 -04:00
parent 285779868b
commit 2b4f031c89
3 changed files with 46 additions and 48 deletions
+3 -1
View File
@@ -35,7 +35,9 @@ This repository contains a Nix flake configuration for setting up a development
To use this configuration with Home Manager:
1. Make sure you have Nix installed
2. Run `home-manager switch` to apply the configuration
2.
a) Run `home-manager switch` to apply the configuration
b) Run with `nix run nixpkgs#home-manager -- switch --flake https://gitea.tylerbohrer.dev/tyler/my-default-nix-home`
The configuration will set up:
- Default shell to zsh
+11 -35
View File
@@ -1,5 +1,5 @@
{
description = "Home Manager configuration with tmux, helix, zsh, starship, alacritty, git, ssh for WSL, Linux, and Mac M1 with Docker and conditional language support";
description = "My Nix flake for cross-platform development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
@@ -7,13 +7,12 @@
url = "github:nix-community/home-manager/release-23.11";
};
flake-utils.url = "github:numtide/flake-utils";
tmux = {
url = "github:jakehamilton/tmux";
inputs.nixpkgs.follows = "nixpkgs";
my-repo = {
url = "https://gitea.tylerbohrer.dev/tyler/my-default-nix-home";
};
};
outputs = { self, nixpkgs, home-manager, flake-utils, tmux }:
outputs = { self, nixpkgs, home-manager, flake-utils, my-repo }:
flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-darwin" "x86_64-windows" ] (system: let
pkgs = import nixpkgs {
inherit system;
@@ -21,37 +20,14 @@
allowUnfree = true;
};
};
in {
# Development shell with all our tools
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
tmux
helix
zsh
git
openssh
alacritty
starship
htop
docker-client
docker-compose
odin
ols
harper
gcc
gnumake
];
};
# Home Manager configuration
homeConfigurations."tylerbohrer" = home-manager.lib.homeManagerConfiguration {
homeConfig = import ./home-manager/home.nix {
inherit pkgs;
modules = [
(import ./home-manager/home.nix {
inherit pkgs;
tmuxPackage = tmux.packages.${system}.tmux;
})
];
tmuxPackage = my-repo.packages.${system}.tmux;
};
in {
packages.default = homeConfig;
checks = {
home-manager = homeConfig;
};
});
}
+26 -6
View File
@@ -236,18 +236,38 @@ in
# Helix Configuration with Language Servers
[editor]
theme = "onedark"
theme="peachpuff"
[editor.file-picker]
hidden = true
[editor]
line-number = "relative"
[editor.cursor-shape]
insert = "bar"
normal = "block"
select = "underline"
[editor.lsp]
enable = true
auto-start = true
# Default language servers (always active)
[[languages.odin]]
language-server = { name = "ols", command = "ols" }
[language-server.harper-ls]
command = "harper-ls"
args = ["--stdio"]
[[languages.harper]]
language-server = { name = "harper", command = "harper-ls" }
[language-server.harper-ls.config.harper-ls.linters]
SpellCheck = false
SentenceCapitalization = false
[language-server.ols]
command = "ols"
args = []
[[language]]
name = "odin"
language-servers = ["ols", "harper-ls"]
# Dynamically added language servers based on user selection
${builtins.concatStringsSep "\n" (generateLanguageServerConfig)}