move everything but emacs into flake
This commit is contained in:
parent
7edb334928
commit
3133bb1308
7 changed files with 50 additions and 3 deletions
|
@ -1 +0,0 @@
|
|||
../../common/.config/nvim
|
15
nixos/.flake/home/clang-format.org
Normal file
15
nixos/.flake/home/clang-format.org
Normal file
|
@ -0,0 +1,15 @@
|
|||
#+title: Clang Format Default Options
|
||||
|
||||
#+begin_src nix :tangle ~/.flake/home/clang-format.nix :mkdirp yes
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.file.".clang-format".text = ''
|
||||
BasedOnStyle: LLVM
|
||||
IndentWidth: 4
|
||||
BreakBeforeBraces: Linux
|
||||
AllowShortIfStatementsOnASingleLine: false
|
||||
IndentCaseLabels: false
|
||||
'';
|
||||
}
|
||||
#+end_src
|
|
@ -6,6 +6,7 @@ Set up home manager for my user account and import submodules.
|
|||
|
||||
{
|
||||
imports = [
|
||||
./clang-format.nix
|
||||
./cursor.nix
|
||||
./fonts.nix
|
||||
./hyprland.nix
|
||||
|
|
|
@ -11,6 +11,7 @@ This is the core of my program configuration. This file installs programs that d
|
|||
./git.nix
|
||||
./hyprlock.nix
|
||||
./ncmpcpp.nix
|
||||
./neovim.nix
|
||||
./ssh.nix
|
||||
./waybar.nix
|
||||
./zsh.nix
|
||||
|
@ -18,6 +19,7 @@ This is the core of my program configuration. This file installs programs that d
|
|||
|
||||
home.packages = with pkgs; [
|
||||
discord # not FOSS
|
||||
clang-tools
|
||||
eza
|
||||
fuzzel
|
||||
ispell
|
||||
|
|
32
nixos/.flake/home/programs/neovim.org
Normal file
32
nixos/.flake/home/programs/neovim.org
Normal file
|
@ -0,0 +1,32 @@
|
|||
#+title: Neovim Settings
|
||||
|
||||
Create a simple Neovim configuration.
|
||||
#+begin_src nix :tangle ~/.flake/home/programs/neovim.nix :mkdirp yes
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
|
||||
defaultEditor = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
vim-trailing-whitespace
|
||||
lightline-vim
|
||||
delimitMate
|
||||
];
|
||||
extraLuaConfig = ''
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.autoindent = true
|
||||
vim.opt.wildmode = 'longest,list'
|
||||
vim.opt.number = true
|
||||
vim.g.background = light
|
||||
vim.cmd [[colorscheme default]]
|
||||
vim.cmd [[set notermguicolors]]
|
||||
'';
|
||||
};
|
||||
}
|
||||
#+end_src
|
|
@ -54,7 +54,6 @@ Create potential aliases and create the prompt.
|
|||
initExtra = ''
|
||||
which lesspipe.sh &> /dev/null && export LESSOPEN="|lesspipe.sh %s"
|
||||
which eza &> /dev/null && alias ls=eza
|
||||
which nvim &> /dev/null && alias vi=nvim && alias vim=nvim
|
||||
parse_git_dirty() {
|
||||
git_status="$(git status 2> /dev/null)"
|
||||
[[ "$git_status" =~ "use \"git push\" to publish your local commits" ]] && echo -n " %F{green}%f"
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
../common/clang-format.org
|
Loading…
Add table
Reference in a new issue