Skip to content

Commit

Permalink
nvim: add nixd
Browse files Browse the repository at this point in the history
  • Loading branch information
DanNixon committed Oct 22, 2023
1 parent e6a1e98 commit 4751b41
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 56 deletions.
114 changes: 58 additions & 56 deletions configurations/maya/home-manager/default.nix
Original file line number Diff line number Diff line change
@@ -1,68 +1,70 @@
{
inputs,
outputs,
}:
inputs.home-manager.lib.homeManagerConfiguration {
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = {inherit inputs outputs;};
}: let
pkgs-unstable = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux;
in
inputs.home-manager.lib.homeManagerConfiguration {
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = {inherit inputs outputs pkgs-unstable;};

modules = [
../../../modules/home-manager/terminal_environment
../../../modules/home-manager/borgmatic.nix
../../../modules/home-manager/media.nix
../../../modules/home-manager/development.nix
../../../modules/home-manager/email
../../../modules/home-manager/desktop_environment
modules = [
../../../modules/home-manager/terminal_environment
../../../modules/home-manager/borgmatic.nix
../../../modules/home-manager/media.nix
../../../modules/home-manager/development.nix
../../../modules/home-manager/email
../../../modules/home-manager/desktop_environment

({pkgs, ...}: {
programs.borgmatic.backups."main" = {
location = {
sourceDirectories = [
"/home/dan/docs"
"/home/dan/phone"
"/home/dan/tombs"
];
repositories = ["[email protected]:repo"];
({pkgs, ...}: {
programs.borgmatic.backups."main" = {
location = {
sourceDirectories = [
"/home/dan/docs"
"/home/dan/phone"
"/home/dan/tombs"
];
repositories = ["[email protected]:repo"];
};
storage.encryptionPasscommand = "pass borg/maya/passphrase";
};
storage.encryptionPasscommand = "pass borg/maya/passphrase";
};

wayland.windowManager.sway.config.output = {
DP-1 = {
enable = "";
bg = "~/.local/share/wallpaper.png fill";
scale = "1.5";
wayland.windowManager.sway.config.output = {
DP-1 = {
enable = "";
bg = "~/.local/share/wallpaper.png fill";
scale = "1.5";
};
};
};

home.file.wallpaper = {
source = ./wallpaper.png;
target = ".local/share/wallpaper.png";
};
home.file.wallpaper = {
source = ./wallpaper.png;
target = ".local/share/wallpaper.png";
};

programs.i3status-rust.bars.main.blocks = [
{
block = "sound";
driver = "pulseaudio";
device_kind = "sink";
}
{
block = "sound";
driver = "pulseaudio";
device_kind = "source";
}
{
block = "time";
interval = 1;
format = " $timestamp.datetime(f:'%Y-%m-%d %H:%M:%S') ";
}
];
programs.i3status-rust.bars.main.blocks = [
{
block = "sound";
driver = "pulseaudio";
device_kind = "sink";
}
{
block = "sound";
driver = "pulseaudio";
device_kind = "source";
}
{
block = "time";
interval = 1;
format = " $timestamp.datetime(f:'%Y-%m-%d %H:%M:%S') ";
}
];

services.mpd.enable = true;
services.mpd.enable = true;

home.packages = with pkgs; [
inputs.satori.packages.${system}.satorictl
];
})
];
}
home.packages = with pkgs; [
inputs.satori.packages.${system}.satorictl
];
})
];
}
6 changes: 6 additions & 0 deletions modules/home-manager/terminal_environment/neovim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@
inputs,
config,
pkgs,
pkgs-unstable,
...
}: {
programs.neovim = {
enable = true;
defaultEditor = true;

extraPackages = [
pkgs.universal-ctags
pkgs-unstable.nixd
];

plugins = [
# Colour scheme
(pkgs.vimPlugins.base16-vim.overrideAttrs (
Expand Down Expand Up @@ -79,6 +83,7 @@
pkgs.vimPlugins.vim-nftables
pkgs.vimPlugins.ron-vim
];

extraConfig = ''
set nocompatible
set encoding=utf-8
Expand Down Expand Up @@ -117,6 +122,7 @@
" Language server config
let g:LanguageClient_serverCommands = {
\ 'nix': ['nixd'],
\ 'rust': ['rust-analyzer'],
\ }
Expand Down

0 comments on commit 4751b41

Please sign in to comment.