chore: deadnix

feat: more nvim pager settings
This commit is contained in:
Patrick 2023-09-19 13:11:11 +02:00
parent 1b0fd3963b
commit 7fbe2980ea
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
14 changed files with 36 additions and 45 deletions

View file

@ -1,4 +1,3 @@
inputs: [
(import ./impermanence.nix inputs)
(import ./disko.nix inputs)
]

View file

@ -1,4 +1,4 @@
inputs: self: super: {
_inputs: _self: super: {
lib =
super.lib
// {

View file

@ -1,17 +0,0 @@
{
self,
nixpkgs,
...
}: self: super: {
lib =
super.lib
// {
# some programs( such as steam do not work with bindmounts
# additionally symlinks are a lot faster than bindmounts
# ~ 2x faster in my tests
impermanence.makeSymlinks = builtins.map (x: {
directory = x;
method = "symlink";
});
};
}

View file

@ -1,4 +1,4 @@
{pkgs, ...}: {
{
services = {
logind.extraConfig = ''
IdleAction=suspend

View file

@ -1,5 +1,4 @@
{
config,
pkgs,
lib,
...
@ -7,13 +6,12 @@
# set the modifier key to WIN
MOD = "Super";
#set the default resize step for herbstluft
RESIZE_STEP = 0.05;
TAGS = map toString (lib.lists.range 1 9);
in {
home.file.".xinitrc".source = ./xinitrc;
xsession.windowManager.herbstluftwm = {
enable = true;
package = pkgs.herbstluftwm.overrideAttrs (finalAttrs: previousAttrs: {
package = pkgs.herbstluftwm.overrideAttrs (_finalAttrs: _previousAttrs: {
doCheck = false;
});
extraConfig = ''

View file

@ -1,8 +1,6 @@
{pkgs, ...}: {
imports = [
./kitty.nix
./Xorg
./firefox.nix
./themes.nix
];
home = {

View file

@ -1,8 +0,0 @@
{
imports = [
./programs/direnv.nix
./programs/htop.nix
./programs/nvim
./programs/git.nix
];
}

View file

@ -0,0 +1,7 @@
{
accounts.email.accounts = {
"1" = {
address = "";
};
};
}

View file

@ -1,4 +1,5 @@
{
{pkgs, ...}: {
home.packages = [pkgs.pwndbg];
home.enableDebugInfo = true;
home.file.gdbinit = {
target = ".gdbinit";

View file

@ -1,20 +1,29 @@
{pkgs, ...}: let
initLua = pkgs.writeText "init.lua" ''
vim.opt.buftype = "nowrite"
vim.opt.history=0
vim.opt.backup=false
vim.opt.modeline=false
vim.opt.shelltemp=false
vim.opt.swapfile=false
vim.opt.undofile=false
vim.opt.writebackup = false
vim.opt.shada-file = vim.fn.stdpath "state" .. "/shada/man.shada"
vim.opt.buftype = "nowrite"
vim.opt.backup=false
vim.opt.modeline=false
vim.opt.shelltemp=false
vim.opt.swapfile=false
vim.opt.undofile=false
vim.opt.writebackup = false
vim.opt.shada-file = vim.fn.stdpath "state" .. "/shada/man.shada"
vim.opt.virtualedit = "all"
vim.opt.splitkeep = "screen"
vim.opt.termguicolors = false
vim.keymap.set('n', '<CR>', '<C-]>', {silent = true, desc = "Jump to tag under cursor})
vim.keymap.set('n', '<Bs>', ':pop<CR>', {silent = true, desc = "Jump to tag under cursor})
vim.keymap.set('n', '<C-Left>', ':pop<CR>', {silent = true, desc = "Jump to tag under cursor})
vim.keymap.set('n', '<C-Right>', ':tag<CR>', {silent = true, desc = "Jump to tag under cursor})
'';
nvimPager = pkgs.wrapNeovimUnstable pkgs.neovim-unwrapped neovimConfig;
neovimConfig =
pkgs.neovimUtils.makeNeovimConfig {
wrapRc = false;
withPython3 = false;
withRuby = false;
}
// {
wrapperArgs = ["--add-flags" "--clean -u ${initLua}"];

View file

@ -36,12 +36,17 @@
../common
../common/impermanence.nix
../common/interactive.nix
../common/graphical
../common/programs/direnv.nix
../common/programs/htop.nix
../common/programs/nvim
../common/programs/git.nix
../common/programs/bottles.nix
../common/programs/gdb.nix
../common/programs/streamdeck.nix
../common/programs/firefox.nix
../common/programs/kitty.nix
];
};
}

View file

@ -4,7 +4,6 @@
nextcloud-client
discord
netflix
pwndbg
];
};
}