Skip to content

Commit

Permalink
refactor: rename common directory to modules
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzBischof committed Jan 19, 2025
1 parent 162549c commit 2fbbed0
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 21 deletions.
11 changes: 0 additions & 11 deletions common/home-manager/neovim/default.nix

This file was deleted.

8 changes: 5 additions & 3 deletions hosts/laptop/home.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
self,
config,
pkgs,
lib,
Expand All @@ -16,9 +17,8 @@
./home-manager/scripts
./home-manager/aider-chat.nix
./home-manager/aichat.nix
../../common/home-manager/git
../../common/home-manager/neovim
../../common/home-manager/shell
../../modules/home-manager/git
../../modules/home-manager/shell
inputs.nix-secrets.homeManagerModule
inputs.numen.homeManagerModule
];
Expand Down Expand Up @@ -60,7 +60,9 @@
# fonts
font-awesome
nerd-fonts.dejavu-sans-mono
self.packages.${pkgs.system}.nvim
];
home.sessionVariables.EDITOR = "nvim";

systemd.user.startServices = true;
gtk = {
Expand Down
19 changes: 13 additions & 6 deletions hosts/wsl/home.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{ config, pkgs, ... }:
{
self,
config,
pkgs,
...
}:
let
regula = pkgs.stdenv.mkDerivation {
name = "regula";
Expand Down Expand Up @@ -33,13 +38,10 @@ let
in
{
imports = [
../../common/home-manager/neovim
../../common/home-manager/shell
../../common/home-manager/git
../../modules/home-manager/shell
../../modules/home-manager/git
];

my.programs.neovim.plugins.avante.enable = false;

nixpkgs.config.allowUnfree = true;

programs = {
Expand Down Expand Up @@ -70,6 +72,7 @@ in
services.ssh-agent.enable = true;

home = {
sessionVariables.EDITOR = "nvim";
packages = with pkgs; [
golangci-lint
kubectl
Expand All @@ -91,6 +94,10 @@ in
docker-compose
awscli2
open-policy-agent

(self.packages.${pkgs.system}.nvim.extend {
plugins.avante.enable = false;
})
];
# Home Manager needs a bit of information about you and the paths it should
# manage.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion nvim/avante.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib, ... }:
{
plugins.avante = {
enable = true;
enable = lib.mkDefault true;
settings = {
claude = {
api_key_name = "cmd:cat /run/agenix/anthropic-api-key";
Expand Down

0 comments on commit 2fbbed0

Please sign in to comment.