Fix things
This commit is contained in:
@@ -1,49 +1,59 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
options.dot = {
|
||||||
./secrets.nix
|
dotfilesPath = lib.mkOption {
|
||||||
./sh.nix
|
type = lib.types.str;
|
||||||
./tmux.nix
|
default = "${config.home.homeDirectory}/dev/dot";
|
||||||
./git.nix
|
description = "Absolute path to the dotfiles repository on the local machine.";
|
||||||
./dev.nix
|
|
||||||
./nvim.nix
|
|
||||||
./task.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
nerd-fonts.fira-code
|
|
||||||
nil # Nix LSP
|
|
||||||
|
|
||||||
# Language servers
|
|
||||||
yaml-language-server
|
|
||||||
marksman
|
|
||||||
pkgs.unstable.dockerfile-language-server # Use unstable for latest LSP features
|
|
||||||
|
|
||||||
# Secrets management
|
|
||||||
sops
|
|
||||||
age
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.ssh = {
|
|
||||||
enable = true;
|
|
||||||
enableDefaultConfig = false;
|
|
||||||
includes = [ "config.local" ];
|
|
||||||
matchBlocks = {
|
|
||||||
"*" = {
|
|
||||||
addKeysToAgent = "yes";
|
|
||||||
};
|
|
||||||
|
|
||||||
"git.pander.me" = {
|
|
||||||
hostname = "git.pander.me";
|
|
||||||
user = "git";
|
|
||||||
identityFile = "~/.ssh/private_git";
|
|
||||||
port = 2222;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
news.display = "silent";
|
config = {
|
||||||
|
imports = [
|
||||||
|
./secrets.nix
|
||||||
|
./sh.nix
|
||||||
|
./tmux.nix
|
||||||
|
./git.nix
|
||||||
|
./dev.nix
|
||||||
|
./nvim.nix
|
||||||
|
./task.nix
|
||||||
|
];
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
home.packages = with pkgs; [
|
||||||
|
nerd-fonts.fira-code
|
||||||
|
nil # Nix LSP
|
||||||
|
|
||||||
|
# Language servers
|
||||||
|
yaml-language-server
|
||||||
|
marksman
|
||||||
|
pkgs.unstable.dockerfile-language-server # Use unstable for latest LSP features
|
||||||
|
|
||||||
|
# Secrets management
|
||||||
|
sops
|
||||||
|
age
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.ssh = {
|
||||||
|
enable = true;
|
||||||
|
enableDefaultConfig = false;
|
||||||
|
includes = [ "config.local" ];
|
||||||
|
matchBlocks = {
|
||||||
|
"*" = {
|
||||||
|
addKeysToAgent = "yes";
|
||||||
|
};
|
||||||
|
|
||||||
|
"git.pander.me" = {
|
||||||
|
hostname = "git.pander.me";
|
||||||
|
user = "git";
|
||||||
|
identityFile = "~/.ssh/private_git";
|
||||||
|
port = 2222;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
news.display = "silent";
|
||||||
|
|
||||||
|
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