Fix things
This commit is contained in:
@@ -1,6 +1,15 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ 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 = [
|
imports = [
|
||||||
./secrets.nix
|
./secrets.nix
|
||||||
./sh.nix
|
./sh.nix
|
||||||
@@ -46,4 +55,5 @@
|
|||||||
news.display = "silent";
|
news.display = "silent";
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ in
|
|||||||
|
|
||||||
# Symlink the nvim/lua directory to ~/.config/nvim/lua
|
# Symlink the nvim/lua directory to ~/.config/nvim/lua
|
||||||
# This allows for editing the lua modules without a nix rebuild
|
# 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; [
|
home.packages = with pkgs; [
|
||||||
nodejs-slim
|
nodejs-slim
|
||||||
|
|||||||
@@ -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')
|
|
||||||
Reference in New Issue
Block a user