Commit graph

206 commits

Author SHA1 Message Date
Oliver Davies c2ae75a465 refactor(nvim): use extraLuaConfig 2023-10-18 22:49:53 +02:00
Oliver Davies 4f2f98069c chore(nvim): use vim.loader
Improve startup performance by using `vim.loader`.

See https://www.youtube.com/watch?v=ixq3g_D3SVs
2023-10-18 22:48:58 +02:00
Oliver Davies c9af4cf4c9 feat(git): set push.autoSetupRemote to true 2023-10-18 22:44:06 +02:00
Oliver Davies 0531c2ffdd chore(nvim): replace splitjoin with treesj 2023-10-18 22:42:48 +02:00
Oliver Davies 1c42a0d397 fix(nvim): ensure PHP is available
e.g. for running Drush commands.
2023-10-16 20:15:39 +01:00
Oliver Davies a0829bcb63 chore(zsh): set keymap to vicmd 2023-10-16 20:14:55 +01:00
Oliver Davies cf5dbda4f0 chore(nvim): remove plugins temporarily
I'm removing these temporarily to see how it affects performance.
2023-10-09 00:14:49 +01:00
Oliver Davies 7b86cafc22 stable 2023-10-03 23:35:26 +01:00
Oliver Davies 3ea182c94b chore(nixos): re-organise packages
Remove packages that are either no longer used or have been moved into
per-project flakes that are used with direnv.
2023-10-03 18:44:31 +01:00
Oliver Davies b806a00ac0 build(deps): remove teams
Remove Microsoft Teams for Linux as it's no longer supported upstream.
2023-10-03 18:28:56 +01:00
Oliver Davies 57db76b1e5 refactor(nvim): replace null-ls with none-ls 2023-10-01 21:55:38 +01:00
Oliver Davies bf21d7de56 feat(nvim): use neoterm with vim-test 2023-09-29 21:31:12 +01:00
Oliver Davies ec9cc45572 feat(nvim): re-add lualine-lsp-progress 2023-09-28 07:22:58 +01:00
Oliver Davies badbf0bac3 feat(nixos): enable auto-cpufreq
See https://github.com/AdnanHodzic/auto-cpufreq

I've used `auto-cpufreq --stats` to do some initial monitoring.

Further configuration can be added with `services.auto-cpufreq.settings`,
if needed.
2023-09-28 00:53:51 +01:00
Oliver Davies 09981552c6 style: nix fmt 2023-09-27 21:02:06 +01:00
Oliver Davies 82122ee03b feat(nvim): add lualine 2023-09-27 21:01:28 +01:00
Oliver Davies 27f8980dfa feat(tmux): create a session for my website
Bind a shortcut key to create and switch to a session for my personal
website.
2023-09-27 00:16:01 +01:00
Oliver Davies ee4733438a build(deps): add go and gopls 2023-09-22 07:45:29 +01:00
Oliver Davies cb700d775a fix(nvim): revert phpactor to 23.05
This was erroring when trying to create a new PHP class but works when
reverted back to 23.05.
2023-09-19 21:01:35 +01:00
Oliver Davies 028c69bccf chore(nvim): remove unused configuration 2023-09-18 22:49:55 +01:00
Oliver Davies ec344fd4f5 refactor: remove nodemon
Removing this as I mostly use `inotifywait` via the `watch-changes`
script instead of nodemon.
2023-09-18 22:42:41 +01:00
Oliver Davies c29c49d5dd feat(nixos): add IntelOneMono font 2023-09-18 22:35:29 +01:00
Oliver Davies f93c1ba9c7 unstable by default
Switch back to using `nixpkgs-unstable` by default and using
`nixpkgs-2305` when needed, such as for `exa` which is no longer
maintained and available.

In a future commit, I'll switch to `eza` which is the recommended alternative.

https://github.com/eza-community/eza
2023-09-17 23:40:32 +01:00
Oliver Davies 2db29db470 chore(nvim): upgrade refactoring-nvim 2023-09-16 20:32:46 +01:00
Oliver Davies 5864c63cf3 feat(nvim): add friendly-snippets 2023-09-15 19:20:40 +01:00
Oliver Davies 5369ccdddd feat(zsh): re-add suffix aliases 2023-09-14 19:08:06 +01:00
Oliver Davies 944e5d7911 revert(zsh): re-add suffix aliases
This reverts commit de69d1253b.
2023-09-14 19:07:01 +01:00
Oliver Davies e649eb98bf chore(zsh): configure exa colours 2023-09-14 07:45:52 +01:00
Oliver Davies de69d1253b feat(zsh): re-add suffix aliases 2023-09-14 07:39:06 +01:00
Oliver Davies 610fc6ffbf refactor(nixos): avoid repetition of the username 2023-09-14 07:25:55 +01:00
Oliver Davies 5f2c4b18b2 chore(sway): simplify sway colours 2023-09-12 23:46:09 +01:00
Oliver Davies b6d118ed75 feat(nvim): re-add projectionist.vim
Re-add `projectionist.vim` with a minimal configuration for setting the
alternate file in basic PHP library or TypeScript projects.
2023-09-05 07:52:01 +01:00
Oliver Davies f3e2741a6f fix(nvim): add stylua 2023-09-04 11:05:17 +01:00
Oliver Davies b66a8bb3d2 chore(nvim): remove lsp-zero 2023-09-04 08:11:43 +01:00
Oliver Davies 864b9ca4a5 feat(nvim): add lua-language-server 2023-09-03 20:50:57 +01:00
Oliver Davies 4bea747ffa revert(nvim): re-add lualine and noice
This reverts commit db7d2b442f.
2023-09-01 12:11:15 +01:00
Oliver Davies 43a1ad8592 chore(zsh): remove dev and develop
These aren't needed since adding `direnv`.
2023-08-30 13:30:30 +01:00
Oliver Davies 19ed68f3ee feat(zsh): configure Starship prompt
Enable and configure the Starship prompt, removing the `package` module
and using the plain text symbols preset.
2023-08-30 10:34:22 +01:00
Oliver Davies adcbc6b3de fix(nvim): ignore .direnv from Telescope and Git 2023-08-30 10:34:01 +01:00
Oliver Davies 7c566dbe76 chore(nixos): change font 2023-08-29 23:04:25 +01:00
Oliver Davies 8f9c42ca6b feat(home-manager): enable direnv 2023-08-29 23:04:25 +01:00
Oliver Davies db7d2b442f feat(nvim): re-add lualine and noice 2023-08-29 21:46:02 +01:00
Oliver Davies 4da372c8ce fix(zsh): aliases 2023-08-29 21:45:25 +01:00
Oliver Davies 4b966a4736 chore(zsh): move aliases 2023-08-28 12:18:36 +01:00
Oliver Davies aff7d4d509 feat(nixos): add shotwell 2023-08-27 17:35:23 +01:00
Oliver Davies 90fa8596cb feat(nvim): re-add todo-comments.nvim 2023-08-27 17:34:58 +01:00
Oliver Davies 150e945417 feat(nixos): configure more Firefox settings 2023-08-27 01:57:12 +01:00
Oliver Davies ea02fc6a09 fix(git): remove unused templatedir 2023-08-27 00:31:31 +01:00
Oliver Davies 0444962168 chore(zsh): make nah a zsh alias 2023-08-27 00:30:37 +01:00
Oliver Davies a3ab645a2b feat(git): add an Refs placeholder to commit
...message body

Add an `# Refs:` placeholder to the Git commit message body that can
be replaced manually or using a `prepare-commit-msg` hook.

I have a templated Git hook that will do this within project directories
using an `.issue-id` file.
2023-08-26 22:30:12 +01:00
Oliver Davies a54996b5f0 refactor(nvim): prefix custom Vim plugins
Prefix custom Vim plugins with `customVim` so they are easier to
distinguish from the plugins provided by the Nix store.
2023-08-25 14:53:32 +01:00
Oliver Davies ec1dff4866 feat(nvim): add vim-zoom
Add https://github.com/dhruvasagar/vim-zoom so that I can focus on a
single split within Vim in the same way I can zoom to a tmux pane.
2023-08-24 23:59:01 +01:00
Oliver Davies 73d1d765cc chore(nixos): use Fira Code Mono 2023-08-24 22:39:35 +01:00
Oliver Davies 51fbde6ae4 chore(zsh): don't show the ASCII logo 2023-08-22 23:05:30 +01:00
Oliver Davies dab8031935 feat(tmux): add join-pane key bind
Add a key binding for re-joining another window into a pane within the
current window, which is the opposite of the `break-pane` command.

It prompts for the window to join from and then joins it into a vertical
pane within the current window.

This was taken from Chris Toomey's dotfiles. See
553c92a3a1/tmux/tmux.conf (L60)
2023-08-22 16:58:57 +01:00
Oliver Davies 3824c8f40b feat(home-manager): add okular for previewing PDFs 2023-08-21 22:56:57 +01:00
Oliver Davies cbb337fcd1 feat(nixos): enable printing 2023-08-21 17:40:46 +01:00
Oliver Davies db880e13ad feat(nixos): add wob
Add wob to show an overlay when changing volume and brightness.
2023-08-17 20:23:50 +01:00
Oliver Davies 0634242cad feat(nixos): use IntelOne Mono 2023-08-17 20:23:50 +01:00
Oliver Davies ca7ad57690 fix(nixos): volume keys in swaywm 2023-08-17 20:23:50 +01:00
Oliver Davies a3325b372a feat(nvim): add vim-sort-motion
Re-add a plugin to add a text object and motion to sort lines. This
means I can run commands like `gsip` to sort lines within a paragraph
without needing to select them first.

https://github.com/christoomey/vim-sort-motion
2023-08-16 08:31:53 +01:00
Oliver Davies bbf14c5b5f chore(home-manager): remove vi and vim aliases 2023-08-15 23:17:16 +01:00
Oliver Davies 990a4f62a9 chore(nvim): remove unused plugins 2023-08-14 19:26:53 +01:00
Oliver Davies 7e8fc3c86f feat(home-manager): add local directories to PATH
This adds local `vendor/bin` and `node_modules/.bin` directories to my
`PATH` so I can more quickly and easily run binaries within a project
from within those directories without needing to include the path.
2023-08-14 17:49:20 +01:00
Oliver Davies b63b84e2f1 feat(nvim): add undotree 2023-08-14 00:23:46 +01:00
Oliver Davies 577054a9e5 feat(zsh): show ASCII logo in a new terminal 2023-08-12 19:53:07 +01:00
Oliver Davies b7dca115ae feat(nixos): add via and vial for keyboard
...configuration
2023-08-11 00:29:01 +01:00
Oliver Davies 227dff7fd1 fix(wsl2): use shared Home Manager configuration 2023-08-09 22:37:03 +01:00
Oliver Davies 3b890d9ee5 refactor(flake): split NixOS Home Manager configs
Create a NixOS-specific Home Manager configuration and a reusable shared
configuration that can be imported and also used by other configurations,
such as WSL2.
2023-08-08 22:35:23 +01:00
Oliver Davies 482a74a5e0 fix(wsl2): inherits, import paths, unfree packages 2023-08-08 13:43:44 +01:00
Oliver Davies eac470013b refactor(flake): re-organise systems and modules 2023-08-08 13:24:29 +01:00
Oliver Davies ddf1ddb1b2 refactor(nixos): define devices by label 2023-08-07 21:42:17 +01:00
Oliver Davies fb30ec5168 refactor(wsl2): move file 2023-08-07 18:28:04 +01:00
Oliver Davies 015b617ba1 chore(nixos): use JetBrains Mono 2023-08-05 01:36:00 +01:00
Oliver Davies b68ad75ce3 build(flake): switch to stable by default
Switch to using the stable version of nixpkgs but still use unstable
where it's needed.
2023-08-04 22:54:32 +01:00
Oliver Davies 8f4aa7bbfc chore: remove apollo configuration
Remove the configuraton for my `apollo` laptop as I don't use it
regularly and I want to simplify my configuration before I refactor it.
2023-08-04 21:09:47 +01:00
Oliver Davies c076c756e6 refactor(nixos): remove unused overlay 2023-07-30 22:57:27 +01:00
Oliver Davies c0243ed7ef feat(nixos): update kernel packages 2023-07-18 20:24:52 +01:00
Oliver Davies ebf27538d6 feat(nixos): use Firefox Developer Edition 2023-07-18 20:23:55 +01:00
Oliver Davies d486ace596 feat(nixos): add and use IntelOne Mono 2023-07-07 09:22:50 +01:00
Oliver Davies db8bac91e7 feat(sway): set as the default graphical session 2023-06-24 10:31:51 +01:00
Oliver Davies a7c7fb6989 feat(nixos): add wl-clipboard 2023-06-23 22:34:10 +01:00
Oliver Davies 43c720d245 chore(alacritty): use IBM Plex Mono 2023-06-23 22:33:42 +01:00
Oliver Davies 8997e76108 fix(nixos): enable gvfs
This is needed by thunar-volman.
2023-06-22 08:43:01 +01:00
Oliver Davies 3547fe2c2b feat: add pass - a CLI password manager 2023-06-22 07:55:59 +01:00
Oliver Davies 1af1dc3fb7 feat(nixos): faster reboots 2023-06-15 19:33:41 +01:00
Oliver Davies 94b045c01f style(fmt) 2023-06-13 19:51:56 +01:00
Oliver Davies e2a8f86899 refactor(sway): manage with Home Manager 2023-06-13 12:33:34 +01:00
Oliver Davies 46e6cb1d87 feat: configure auto upgrades 2023-06-04 16:30:17 +01:00
Oliver Davies 6e0fa3fdfe feat: configure fonts 2023-06-03 11:40:49 +01:00
Oliver Davies b906cc8a51 chore: update nix.settings and nix.gc 2023-06-03 11:11:19 +01:00
Oliver Davies bf3d81656d feat: caps lock key configuration
Esc on press, ctrl on hold.
2023-06-03 11:09:59 +01:00
Oliver Davies 462d1d86e7 feat(packages): add brightnessctl 2023-05-31 20:35:57 +01:00
Oliver Davies f933b7c2e1 chore(sway): updates 2023-05-31 13:50:02 +01:00
Oliver Davies 807e8f177c feat: sway configuration
- Change the mod key to Alt.
- Change the keyboard input language to UK.
- Replace dmenu with wofi.
- Disable the laptop screen when used in clam mode (lid closed with an
  external monitor).
- Override the GTK theme to ensure that a dark theme is used in all apps
  (e.g. Firefox).

See:

- https://github.com/swaywm/sway/wiki#clamshell-mode
- https://wiki.archlinux.org/title/Sway#Keymap
2023-05-25 23:37:35 +01:00
Oliver Davies ef64b0e03d feat(sway): initial configuration 2023-05-22 22:45:23 +01:00
Oliver Davies bcfde30e28 feat: enable zram swap 2023-05-09 19:09:12 +01:00
Oliver Davies 4b459f08d4 style: reformat with nixpkgs-fmt 2023-05-03 22:19:59 +01:00
Oliver Davies d0f59f950b refactor(nvim): move custom plugins 2023-04-29 10:56:47 +01:00
Oliver Davies c8bd0246ac chore: remove pop-os.nix 2023-04-14 11:50:44 +01:00
Oliver Davies 12c99707e2 chore: don't require root password for wheel users 2023-04-11 20:03:25 +01:00
Oliver Davies 601f6b3373 fix: fix customVim overlay in NixOS 2023-04-05 17:51:24 +01:00
Oliver Davies d66f5362cb fix(zsh): set zsh as the default shell 2023-04-05 17:17:37 +01:00
Oliver Davies 4e5ab16937 feat: initial commit of NixOS on my Infinitybook 2023-04-05 16:57:41 +01:00
Oliver Davies cc7aaa2144 feat: change Caps Lock behaviour on Pop!_OS 2023-03-23 21:28:52 +00:00
Oliver Davies 98a47d867e refactor: change configuration to system 2023-03-22 23:50:04 +00:00