feat: work qol

This commit is contained in:
Swarsel 2024-10-14 23:45:19 +02:00
parent 4ca971d869
commit 5f89b09659
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
7 changed files with 102 additions and 64 deletions

View file

@ -1812,7 +1812,8 @@ My work machine. Built for more security, this is the gold standard of my config
./disk-config.nix ./disk-config.nix
../optional/nixos/steam.nix ../optional/nixos/steam.nix
# ../optional/nixos/virtualbox.nix ../optional/nixos/virtualbox.nix
# ../optional/nixos/vmware.nix
../optional/nixos/autologin.nix ../optional/nixos/autologin.nix
../optional/nixos/nswitch-rcm.nix ../optional/nixos/nswitch-rcm.nix
../optional/nixos/work.nix ../optional/nixos/work.nix
@ -7544,6 +7545,7 @@ Also, the system state version is set here. No need to touch it.
PAPERLESS_URL = "https://scan.swarsel.win"; PAPERLESS_URL = "https://scan.swarsel.win";
PAPERLESS_OCR_USER_ARGS = builtins.toJSON { PAPERLESS_OCR_USER_ARGS = builtins.toJSON {
optimize = 1; optimize = 1;
invalidate_digital_signatures = true;
pdfa_image_compression = "lossless"; pdfa_image_compression = "lossless";
}; };
}; };
@ -7703,6 +7705,20 @@ This sets the VirtualBox configuration. Guest should not be enabled if not direl
} }
#+end_src #+end_src
**** VmWare
This sets the VirtualBox configuration. Guest should not be enabled if not direly needed, it will make rebuilds unbearably slow.
#+begin_src nix :tangle profiles/optional/nixos/vmware.nix
_:
{
virtualisation.vmware.host.enable = true;
virtualisation.vmware.guest.enable = true;
}
#+end_src
**** Auto-login **** Auto-login
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: h:fa8d9ec4-3e22-458a-9239-859cffe7f55c :CUSTOM_ID: h:fa8d9ec4-3e22-458a-9239-859cffe7f55c
@ -7759,10 +7775,24 @@ Integrates 1password mostly. There are more options at [[#h:f0b2ea93-94c8-48d8-8
}; };
virtualisation.docker.enable = true; virtualisation.docker.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# (python39.withPackages (ps: with ps; [
# cryptography
# ]))
# docker
python39 python39
docker qemu
packer
gnumake
libisoburn
govc
]; ];
services.openssh = {
enable = true;
extraConfig = ''
'';
};
specialisation = { specialisation = {
cgroup_v1.configuration = { cgroup_v1.configuration = {
boot.kernelParams = [ boot.kernelParams = [
@ -9087,10 +9117,7 @@ Here we set some aliases (some of them should be shellApplications instead) as w
set -g mouse on set -g mouse on
# Change splits to match nvim and easier to remember
# Open new split at cwd of current split # Open new split at cwd of current split
unbind %
unbind '"'
bind | split-window -h -c "#{pane_current_path}" bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}" bind - split-window -v -c "#{pane_current_path}"
@ -9105,21 +9132,12 @@ Here we set some aliases (some of them should be shellApplications instead) as w
# Escape turns on copy mode # Escape turns on copy mode
bind Escape copy-mode bind Escape copy-mode
# Easier reload of config
bind r source-file ~/.config/tmux/tmux.conf
set-option -g status-position top set-option -g status-position top
# make Prefix p paste the buffer. # make Prefix p paste the buffer.
unbind p unbind p
bind p paste-buffer bind p paste-buffer
# Bind Keys
bind-key -T prefix C-g split-window \
"$SHELL --login -i -c 'navi --print | head -c -1 | tmux load-buffer -b tmp - ; tmux paste-buffer -p -t {last} -b tmp -d'"
bind-key -T prefix C-l switch -t notes
bind-key -T prefix C-d switch -t dotfiles
bind-key e send-keys "tmux capture-pane -p -S - | nvim -c 'set buftype=nofile' +" Enter
''; '';
}; };
} }

View file

@ -71,10 +71,7 @@ in
set -g mouse on set -g mouse on
# Change splits to match nvim and easier to remember
# Open new split at cwd of current split # Open new split at cwd of current split
unbind %
unbind '"'
bind | split-window -h -c "#{pane_current_path}" bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}" bind - split-window -v -c "#{pane_current_path}"
@ -89,21 +86,12 @@ in
# Escape turns on copy mode # Escape turns on copy mode
bind Escape copy-mode bind Escape copy-mode
# Easier reload of config
bind r source-file ~/.config/tmux/tmux.conf
set-option -g status-position top set-option -g status-position top
# make Prefix p paste the buffer. # make Prefix p paste the buffer.
unbind p unbind p
bind p paste-buffer bind p paste-buffer
# Bind Keys
bind-key -T prefix C-g split-window \
"$SHELL --login -i -c 'navi --print | head -c -1 | tmux load-buffer -b tmp - ; tmux paste-buffer -p -t {last} -b tmp -d'"
bind-key -T prefix C-l switch -t notes
bind-key -T prefix C-d switch -t dotfiles
bind-key e send-keys "tmux capture-pane -p -S - | nvim -c 'set buftype=nofile' +" Enter
''; '';
}; };
} }

View file

@ -9,7 +9,8 @@
./disk-config.nix ./disk-config.nix
../optional/nixos/steam.nix ../optional/nixos/steam.nix
# ../optional/nixos/virtualbox.nix ../optional/nixos/virtualbox.nix
# ../optional/nixos/vmware.nix
../optional/nixos/autologin.nix ../optional/nixos/autologin.nix
../optional/nixos/nswitch-rcm.nix ../optional/nixos/nswitch-rcm.nix
../optional/nixos/work.nix ../optional/nixos/work.nix

View file

@ -0,0 +1,6 @@
_:
{
virtualisation.vmware.host.enable = true;
virtualisation.vmware.guest.enable = true;
}

View file

@ -9,10 +9,24 @@
}; };
virtualisation.docker.enable = true; virtualisation.docker.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# (python39.withPackages (ps: with ps; [
# cryptography
# ]))
# docker
python39 python39
docker qemu
packer
gnumake
libisoburn
govc
]; ];
services.openssh = {
enable = true;
extraConfig = ''
'';
};
specialisation = { specialisation = {
cgroup_v1.configuration = { cgroup_v1.configuration = {
boot.kernelParams = [ boot.kernelParams = [

View file

@ -22,6 +22,7 @@
PAPERLESS_URL = "https://scan.swarsel.win"; PAPERLESS_URL = "https://scan.swarsel.win";
PAPERLESS_OCR_USER_ARGS = builtins.toJSON { PAPERLESS_OCR_USER_ARGS = builtins.toJSON {
optimize = 1; optimize = 1;
invalidate_digital_signatures = true;
pdfa_image_compression = "lossless"; pdfa_image_compression = "lossless";
}; };
}; };

View file

@ -34,6 +34,16 @@ bind ? fillcmdline find -?
bind n findnext 1 bind n findnext 1
bind N findnext -1 bind N findnext -1
bind j scrollline 4
bind k scrollline -4
" Make Tridactyl work on more sites at the expense of some security
sfixamo_quiet
set allowautofocus false
et csp clobber
" some pages like github break on the tridactyl quick search. have this as a fallback " some pages like github break on the tridactyl quick search. have this as a fallback
unbind <C-f> unbind <C-f>