Fix things

This commit is contained in:
Martin Pander
2026-02-10 22:14:17 +01:00
parent 6250ccbf11
commit 2fbabfb771
3 changed files with 52 additions and 49 deletions

View File

@@ -1,6 +1,15 @@
{ config, pkgs, lib, ... }:
{
options.dot = {
dotfilesPath = lib.mkOption {
type = lib.types.str;
default = "${config.home.homeDirectory}/dev/dot";
description = "Absolute path to the dotfiles repository on the local machine.";
};
};
config = {
imports = [
./secrets.nix
./sh.nix
@@ -46,4 +55,5 @@
news.display = "silent";
programs.home-manager.enable = true;
};
}

View File

@@ -92,7 +92,7 @@ in
# Symlink the nvim/lua directory to ~/.config/nvim/lua
# This allows for editing the lua modules without a nix rebuild
xdg.configFile."nvim/lua".source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/dev/dot/nvim/lua";
xdg.configFile."nvim/lua".source = config.lib.file.mkOutOfStoreSymlink "${config.dot.dotfilesPath}/nvim/lua";
home.packages = with pkgs; [
nodejs-slim

View File

@@ -1,7 +0,0 @@
-- init.lua
-- This file is managed by Nix, but requires standard Lua modules from the lua/ directory
require('base')
require('keymaps')
require('plugins')
require('filetype')