Refactor: ..., also: Added vim-lastplace and tmate

This commit is contained in:
kat witch 2021-05-07 00:49:01 +01:00
parent 386fe7a2c0
commit 46169bc8c2
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
103 changed files with 142 additions and 167 deletions

View file

@ -1,7 +1,7 @@
{ config, pkgs, lib, ... }:
{
home-manager.users.kat = { imports = [ ../home/base ]; };
home-manager.users.kat = { imports = [ ./base ]; };
users.users.kat = {
uid = 1000;

View file

@ -2,6 +2,7 @@
{
home.packages = with pkgs; [
tmate
htop
fd
sd

View file

@ -23,6 +23,7 @@
vim-startify
vim-airline
vim-airline-themes
vim-lastplace
base16-vim
];
#extraPackages = with pkgs;

View file

@ -22,6 +22,9 @@
let g:notmuch_search_date_format='%Y/%m/%d %H:%M'
let g:notmuch_html_converter='${pkgs.elinks}/bin/elinks --dump'
" lastplace
let g:lastplace_ignore = "gitcommit,gitrebase,svn,hgcommit"
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() |
\ quit | endif
autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 |
@ -52,18 +55,6 @@
set relativenumber
set completeopt=longest,menuone
function! ResCur()
if line("'\"") <= line("$")
normal! g`"
return 1
endif
endfunction
augroup resCur
autocmd!
autocmd BufWinEnter * call ResCur()
augroup END
inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<TAB>" :

View file

@ -1,10 +1,10 @@
rec {
base = ./nixos/base.nix;
gui = ./nixos/gui.nix;
sway = ./nixos/sway.nix;
dev = ./nixos/dev.nix;
media = ./nixos/media.nix;
personal = ./nixos/personal.nix;
base = ./base.nix;
gui = ./gui.nix;
sway = ./sway.nix;
dev = ./dev.nix;
media = ./media.nix;
personal = ./personal.nix;
server = { imports = [ personal ]; };
guiFull = { imports = [ gui sway dev media personal ]; };

5
users/kat/dev.nix Normal file
View file

@ -0,0 +1,5 @@
{ ... }:
{
home-manager.users.kat = { imports = [ ./dev ]; };
}

5
users/kat/gui.nix Normal file
View file

@ -0,0 +1,5 @@
{ ... }:
{
home-manager.users.kat = { imports = [ ./gui ]; };
}

View file

@ -1,11 +1,6 @@
{ config, pkgs, lib, superConfig, ... }:
{
home.file = {
".local/share/weechat/sec.conf" = lib.mkIf config.deploy.profile.private {
source = ../../../../private/files/weechat/sec.conf;
};
};
programs.weechat = {
enable = true;
config = {

View file

@ -1,5 +0,0 @@
rec {
base = ./base;
sway = ./sway;
gui = ./gui;
}

View file

@ -1,10 +0,0 @@
{ config, ... }:
{
xdg.configFile."rbw/config.json".text = builtins.toJSON {
email = "kat@kittywit.ch";
base_url = "https://vault.kittywit.ch";
identity_url = null;
lock_timeout = 3600;
};
}

View file

@ -1,5 +0,0 @@
{ ... }:
{
imports = [ ./secrets.nix ./bitw.nix ./gpg.nix ./packages.nix ];
}

5
users/kat/media.nix Normal file
View file

@ -0,0 +1,5 @@
{ ... }:
{
home-manager.users.kat = { imports = [ ./media ]; };
}

View file

@ -1,5 +0,0 @@
{ ... }:
{
home-manager.users.kat = { imports = [ ../home/dev ]; };
}

View file

@ -1,5 +0,0 @@
{ ... }:
{
home-manager.users.kat = { imports = [ ../home/gui ]; };
}

View file

@ -1,5 +0,0 @@
{ ... }:
{
home-manager.users.kat = { imports = [ ../home/media ]; };
}

View file

@ -1,5 +0,0 @@
{ ... }:
{
home-manager.users.kat = { imports = [ ../home/personal ]; };
}

View file

@ -1,5 +0,0 @@
{ ... }:
{
home-manager.users.kat = { imports = [ ../home/sway ]; };
}

5
users/kat/personal.nix Normal file
View file

@ -0,0 +1,5 @@
{ ... }:
{
home-manager.users.kat = { imports = [ ./personal ]; };
}

View file

@ -0,0 +1,5 @@
{ ... }:
{
imports = [ ./secrets.nix ./gpg.nix ./packages.nix ];
}

5
users/kat/sway.nix Normal file
View file

@ -0,0 +1,5 @@
{ ... }:
{
home-manager.users.kat = { imports = [ ./sway ]; };
}

View file

Before

Width:  |  Height:  |  Size: 451 KiB

After

Width:  |  Height:  |  Size: 451 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 5.2 MiB

After

Width:  |  Height:  |  Size: 5.2 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

Before After
Before After