chore: backup nixos configs 📌
This commit is contained in:
parent
f4f57b8142
commit
7107459300
3 changed files with 52 additions and 17 deletions
|
|
@ -20,13 +20,24 @@
|
|||
wsl.defaultUser = "nixos";
|
||||
wsl.nativeSystemd = false;
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ]; # for vscode remote server
|
||||
|
||||
# TODO: move to home manager (?)
|
||||
programs = {
|
||||
direnv = {
|
||||
enable = true;
|
||||
# enableFishIntegration = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It's perfectly fine and recommended to leave
|
||||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "23.11"; # Did you read the comment?
|
||||
system.stateVersion = "24.05"; # Did you read the comment?
|
||||
|
||||
users.users.dth = {
|
||||
isNormalUser = true;
|
||||
|
|
@ -34,6 +45,11 @@
|
|||
initialPassword = "test";
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
environment.variables = {
|
||||
DBT_USER = "DNTH";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
# tmux # activated in tmux.nix
|
||||
# vim # using neovim in stead
|
||||
|
|
@ -41,19 +57,21 @@
|
|||
|
||||
git
|
||||
ripgrep
|
||||
wget # for vscode-server
|
||||
busybox # useful programs e.g. tree, unzip etc
|
||||
|
||||
# make default.nix in python project folders instead of using a top-level python environment manager
|
||||
# pyenv
|
||||
# poetry
|
||||
|
||||
fastfetch
|
||||
neofetch
|
||||
neofetch # system info
|
||||
|
||||
# gimp # bloat
|
||||
# blender # bloat
|
||||
# inkscape # bloat
|
||||
|
||||
cowsay
|
||||
lolcat
|
||||
];
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,24 +14,41 @@
|
|||
|
||||
colorscheme gruvbox
|
||||
|
||||
" relative line numbering when leaving insert mode
|
||||
set relativenumber
|
||||
autocmd InsertEnter * :set number norelativenumber
|
||||
autocmd InsertLeave * :set nonumber relativenumber
|
||||
|
||||
" netrw (dir listing) settings
|
||||
let g:netrw_liststyle = 3
|
||||
let g:netrw_banner = 0
|
||||
let g:netrw_browse_split = 3
|
||||
let g:netrw_winsize = 25 " % of page
|
||||
|
||||
set listchars=tab:→\ ,space:·,nbsp:␣,trail:•,eol:¶,precedes:«,extends:»
|
||||
set clipboard+=unnamedplus
|
||||
|
||||
" Replace-all is aliased to S.
|
||||
nnoremap S :%s//g<Left><Left>
|
||||
|
||||
" spellcheck
|
||||
set spell spelllang=en_us
|
||||
setlocal spell! spelllang=en_us
|
||||
'';
|
||||
# vimPlugins inspired from Alexnortung
|
||||
# https://discourse.nixos.org/t/neovim-no-longer-uses-config-or-plugins/13399/4
|
||||
packages.nix = with pkgs.vimPlugins; {
|
||||
start = [
|
||||
vim-surround # Shortcuts for setting () {} etc.
|
||||
vim-surround # shortcuts for setting () {} etc.
|
||||
# coc-nvim coc-git coc-highlight coc-python coc-rls coc-vetur coc-vimtex coc-yaml coc-html coc-json # auto completion
|
||||
vim-nix # nix highlight
|
||||
vimtex # latex stuff
|
||||
fzf-vim # fuzzy finder through vim
|
||||
nerdtree # file structure inside nvim
|
||||
rainbow # Color parenthesis
|
||||
rainbow # color parenthesis
|
||||
gruvbox-nvim # theme
|
||||
goyo-vim # write prose
|
||||
limelight-vim # prose paragraph highlighter
|
||||
];
|
||||
opt = [];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
programs.tmux = {
|
||||
enable = true;
|
||||
clock24 = true;
|
||||
escapeTime = 20;
|
||||
# escapeTime = 20;
|
||||
extraConfig = ''
|
||||
# remap prefix from ^+B to alt-f
|
||||
unbind C-b
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xsel -i --clipboard"
|
||||
|
||||
# reduce escape time
|
||||
set-option -sg escape-time 20
|
||||
set -sg escape-time 20
|
||||
|
||||
# pane movement shortcuts
|
||||
bind h select-pane -L
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue