Commit graph

37 commits

Author SHA1 Message Date
Oliver Davies 69a397e624 Move Nix files into a nix directory
Move everything from `config` to the root level.
2024-11-21 08:56:12 +00:00
Oliver Davies dcbe273d9b Add killall 2024-11-20 10:48:42 +00:00
Oliver Davies a181e9fe4e Configure htop with Home Manager 2024-11-20 07:59:50 +00:00
Oliver Davies abc0e5d429 Switch back to nixpkgs-unstable by default 2024-11-12 20:14:21 +00:00
Oliver Davies e4cd1a0b81 Add devenv 2024-11-12 00:18:38 +00:00
Oliver Davies cd25bf96e9 Remove notetaker script 2024-11-05 07:45:36 +00:00
Oliver Davies 11a75714f9 Prepare for switching back to unstable 2024-11-03 19:57:04 +00:00
Oliver Davies 80927b1df2 Add deliver script
Based on Jess Archer's script, this executes a command within a
specified Docker Compose service or, if no matching one is not found,
will execute it locally.
2024-10-25 22:06:26 +01:00
Oliver Davies 9fbe7c1fec Revert "Remove tmux"
This reverts commit a7556575ac.
2024-09-25 21:33:55 +01:00
Oliver Davies a7556575ac Remove tmux
After using it as a daily driver from the last week or so, I'm switching
to Zellij.

https://zellij.dev
2024-09-04 08:00:59 +01:00
Oliver Davies 56ce8ba735 Add create-zellij-session script
Based on t.nix, this creates or attaches to a Zellij session based on a
given directory.
2024-08-31 17:17:32 +01:00
Oliver Davies b9ff90afc0 Add watchexec 2024-08-28 12:58:02 +01:00
Oliver Davies 4d4d65d812 Refactor: inject the username into the source path 2024-08-20 21:01:50 +01:00
Oliver Davies ce5b4fa0a1 Create export-video-list script
Create a `export-video-list` script that exports all the video files on
my external hard drive to a JSON file so I can easily see what videos I
have without needing to get and plug in the drive.

I can easily view it using `bat` or `jq` and combine it with `grep` to
search for a specific video - e.g. `cat ~/video.json | grep -i nix`
(`-i` makes the search case-insensitive).
2024-08-20 19:48:57 +01:00
Oliver Davies b36ca8086e Add timer script for desktop machines
Based on https://github.com/sdaschner/dotfiles/blob/master/bin/timer and
https://github.com/sdaschner/dotfiles/blob/master/bin/_timer.

Seen in https://youtu.be/8CZIv3MJvic?si=PiVPM_vwuUKI7ak3&t=1460.
2024-08-20 14:34:32 +01:00
Oliver Davies 74c6c2f8dc Always install xclip, not just on desktop 2024-08-19 21:41:28 +01:00
Oliver Davies bcf8104617 Add age and sshs
Seen on https://youtu.be/1QqvL-k11NE?si=I_nNNf7b7u9O16Xr.
2024-08-13 09:13:32 +01:00
Oliver Davies 6082de62b0 Look for .ignored/run when running commands
Make the `run` command cleverer by also searching for a `.ignored/run`
file, following the convention of always ignoring a `.ignored` directory
from Git.

This allows me to have a local `run` file that doesn't need to be
committed and pushed to the repo (e.g. it's too specific to me), and
being able to keep it outside of the root of the project directory where
it could be committed accidentally.

A similar approach was done by Andreas Möller using Makefiles in this
article:

https://localheinz.com/articles/2020/05/07/using-makefiles-in-projects-where-i-can-not-use-them

With this function, the `.ignored/run` file is executed if it's found
and exits with the status code of the command.

If not, it will fall back to using `./run` as before.

I considered reversing these and checking for `./run` first as there
could be a performance benefit but, if neither file is found, I want the
error to show `./run` and not `.ignored/run` as that's the main use
case.
2024-07-31 16:40:25 +01:00
Oliver Davies c2ead888dd Add notetaker script
Add a script to quickly and easily create and edit a daily note.
2024-07-23 15:19:47 +01:00
Oliver Davies e6e55d8af8 Remove build-configs
Caching permissions error when running `app:generate`.
2024-07-06 01:41:43 +01:00
Oliver Davies 4ddd317c6c Add xdg-utils and wsl-open
Add `xdg-utils` to add functions like `xdg-open` to run commands such
as `mob timer open` and have them open a browser.

Also add `wsl-open` so this works within WSL.
2024-06-18 12:32:47 +01:00
Oliver Davies 4ed0648578 Move mob and simple-http-server
So they aren't only available in NixOS.
2024-06-18 12:32:18 +01:00
Oliver Davies a36dd7baf4 Move t into its own file 2024-06-17 17:59:35 +01:00
Oliver Davies 4d24228c30 Update t script 2024-06-16 23:01:49 +01:00
Oliver Davies 9fcce5ad14 Change writeShellScriptBin to writeShellApplication 2024-06-15 13:26:38 +01:00
Oliver Davies e61242e51a Create the t script with nix 2024-06-15 12:36:11 +01:00
Oliver Davies 7f2df5f726 Run nix fmt
Format using `nixfmt-rfc-style`.
2024-06-10 09:38:34 +01:00
Oliver Davies c8cc72b1ac Add build-configs from its derivation
It currently uses a local version of `build-configs`. I need to look
into how to get it to with Nix and a private GitHub repository.
2024-05-22 09:21:25 +01:00
Oliver Davies afe587d3a1 Switch awscli2 back to unstable 2024-03-30 22:22:39 +00:00
Oliver Davies e67424baa5 Extract PHP version variables 2024-03-30 20:00:37 +00:00
Oliver Davies f6c366611e Fix awscli2 build error 2024-03-25 12:03:08 +00:00
Oliver Davies ca27706226 Replace watchexec with entr
https://eradman.com/entrproject
2024-03-22 08:14:28 +00:00
Oliver Davies b1421c97e1 Format using nixfmt 2024-03-18 20:34:51 +00:00
Oliver Davies 384da2a640 Make configuration more modular 2024-03-16 22:38:39 +00:00
Oliver Davies 561eefeea3 Remove neofetch 2024-03-05 15:01:46 +00:00
Oliver Davies 5dee369667 Add cachix 2024-03-01 23:26:36 +00:00
Oliver Davies addad268e5 Rename system to lib 2024-02-29 08:24:01 +00:00
Renamed from system/shared/home-manager-packages.nix (Browse further)