add in chanages to match existing helix config
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
];
|
||||
homeConfig = import ./home-manager/home.nix {
|
||||
inherit pkgs;
|
||||
tmuxPackage = my-repo.packages.${system}.tmux;
|
||||
};
|
||||
|
||||
# Home Manager configuration
|
||||
homeConfigurations."tylerbohrer" = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
modules = [
|
||||
(import ./home-manager/home.nix {
|
||||
inherit pkgs;
|
||||
tmuxPackage = tmux.packages.${system}.tmux;
|
||||
})
|
||||
];
|
||||
in {
|
||||
packages.default = homeConfig;
|
||||
checks = {
|
||||
home-manager = homeConfig;
|
||||
};
|
||||
});
|
||||
}
|
||||
+26
-6
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user