Commit Graph

618 Commits

Author SHA1 Message Date
Donovan Glover
0879043b17
meta: Replace dunst with swaync
Seems to work so far and should let us have a cooler way to access the
notification history.
2024-07-10 22:14:27 -04:00
Donovan Glover
c348eb69d7
Revert "zathura: Fix opaque highlight color"
Shouldn't be needed anymore now that we're using the latest stylix
commit. Note that I don't care enough about this to use 0.3 highlight
transparency instead of 0.5.
2024-07-10 00:12:14 -04:00
Donovan Glover
219e5d1b0b
hypridle: Use minimum screen brightness
Prevents the screen from increasing in brightness when the original
value is lower.
2024-07-08 14:08:08 -04:00
Donovan Glover
837b37d834
hyprland: Add script to toggle internal laptop display
The auto-left ensures that the external monitor is always on the right.
2024-07-08 11:25:15 -04:00
Donovan Glover
44a2f7e995
hyprland: Use monitor on right with high refresh rate
Fixes two distinct issues: One where the monitor positions would
previously get mixed up and one where high refresh rate wasn't the
default.
2024-07-08 10:38:25 -04:00
Donovan Glover
a9d96a06d9
hyprland: Migrate gaps script from bash to fish
Makes the code base more consistent when everything is written in one
shell language.
2024-07-07 13:19:58 -04:00
Donovan Glover
375d85cd76
hypridle: Disable laptop keyboard backlight on dim
Also restores the previous state when resuming activity.
2024-07-07 11:00:58 -04:00
Donovan Glover
aa61279c71
hyprland: Add notification on wifi toggle 2024-07-07 10:45:33 -04:00
Donovan Glover
552d2a1956
ironbar: Sleep before fetching mullvad location
Fixes an issue where mullvad would report the device as offline before
connecting to a server. Only happens in newer versions of nixxpkgs.
2024-07-07 10:12:43 -04:00
Donovan Glover
92fec28699
hyprland: Add base Super+Tab support with Hyprspace
This seems to be more useful than hycov and hyprexpo for hyprnome
workflows.
2024-07-07 08:49:24 -04:00
Donovan Glover
aa0ee9330c
neovim: Fix capital scheme names breaking base16-nvim 2024-07-06 17:57:10 -04:00
Donovan Glover
06d3abf811
nvd: Exclude neovim treesitter grammars from diff 2024-07-06 11:48:20 -04:00
Donovan Glover
8d676a7b58
chore: Update to latest nixos-unstable release 2024-07-06 11:38:21 -04:00
Donovan Glover
2050b758ab
home-manager: Use string variable for notify-send
Since the variable has to be a string anyway, wrapping the entire
command in it reduces complexity a bit.
2024-07-06 11:17:57 -04:00
Donovan Glover
307a7fb543
home-manager: Use extraSpecialArgs for shared variables
Makes it possible to avoid inconsistencies with duplicate code.
2024-07-06 11:15:13 -04:00
Donovan Glover
5378f4c927
hyprland: Add mute script for microphone 2024-07-05 15:41:49 -04:00
Donovan Glover
ad58ee22a6
stylix: Update to latest commit
Dropping the Kvantum fork for now to focus on staying up to date with
the recent Stylix developments.
2024-07-05 15:39:12 -04:00
Donovan Glover
7913e784bd
Revert "hyprland: Disable animate_mouse_windowdragging"
This was fixed in a recent Hyprland version.
2024-07-04 09:35:14 -04:00
Donovan Glover
97fdb6d22a
neovim: Drop fcitx-vim
This was significantly increasing start time and I didn't use it too
much. There should be lighter alternatives out there that aren't
packaged in nixpkgs.
2024-06-25 23:36:45 -04:00
Donovan Glover
3b25740fb1
neovim: Inherit scheme instead of slug from stylix
Fixes an issue where importing the path directly changed the slug name
in stylix.
2024-06-20 22:31:35 -04:00
Donovan Glover
fc69d7980f
hyprland: Disable initial_workspace_tracking
Fixes an issue where new windows from ironbar and eww would open on the
first workspace instead of the current one.
2024-06-13 05:42:08 -04:00
Donovan Glover
ca4e454138
qutebrowser: Nixify remaining config settings 2024-06-02 12:53:28 -04:00
Donovan Glover
481cc84e9a
qutebrowser: Declare remaining binds with nix 2024-06-02 12:36:39 -04:00
Donovan Glover
9b04d65774
qutebrowser: Don't specify context menu colors
Will let this be handled by stylix instead since the colors are good
enough and more closely align with the color scheme being used.
2024-06-02 12:35:27 -04:00
Donovan Glover
c0062d1310
qutebrowser: Prefer declaring unbinds with null in nix
This is possible since the home manager module handles the null case.

See: 9b53a10f4c/modules/programs/qutebrowser.nix (L29-L36)
2024-06-02 12:23:46 -04:00
Donovan Glover
49fda4f0ae
meta: Move dev tools to shell
Avoids having a separate home module just for packages and makes
essential tooling accessible in all shells.

Note that the legacy `texlive.combined.scheme-full` was replaced with
`texliveFull` in this commit.
2024-06-02 11:39:47 -04:00
Donovan Glover
7587043310
yazi: Include modified time by default
Makes it easier to see which files are older. When not necessary, `m`
can be used to change the linemode.
2024-06-02 11:07:12 -04:00
Donovan Glover
4f19c5df14
zathura: Fix opaque highlight color
Fixes an issue where newer versions of zathura changed how colors were
specified. Should eventually be fixed upstream in stylix, but we're
using the Kvantum fork for theming support in Qt applications.

Based on the upstream pull request with a preference for 0.3 highlight
transparency over 0.5.
2024-06-02 10:57:22 -04:00
Donovan Glover
5e7b6c7fdc
fish: Simplify deno abbreviations
`deno add` is now preferred over `deno install`. Additionally, `deno
compile` doesn't work on NixOS, and creating a derivation should be
preferred instead.
2024-06-02 10:52:19 -04:00
Donovan Glover
41f9b015dc
fish: Remove unused cargo abbreviations
It's easier to build off of existing projects than start with a new one
entirely, hence why I stopped using cargo init/new.
2024-06-02 10:42:50 -04:00
Donovan Glover
a65d312a09
fish: Remove ~/.local/bin from $PATH
No longer necessary since we're using NixOS. Anything that was in
~/.local/bin should be declaratively defined instead.
2024-06-01 22:11:43 -04:00
Donovan Glover
ce02f98e0c
neovim: Drop csv-vim
This actually isn't that useful and has some bugs where errors are shown
and the neovim tree window is used instead of the active window with the
CSV file.
2024-05-31 16:25:26 -04:00
Donovan Glover
47c6d60229
hyprland: Use home-manager module for hyprlock 2024-05-28 13:19:15 -04:00
Donovan Glover
1462c868b6
hyprland: Use home-manager module for hypridle 2024-05-28 13:13:01 -04:00
Donovan Glover
f80d3c356d
fish: Add ex function
Used for extracting multi-part archives.
2024-05-28 13:04:47 -04:00
Donovan Glover
0d2cde7e36
fish: Add tmp function
This is the preferred way of starting qutebrowser.
2024-05-28 11:56:32 -04:00
Donovan Glover
2fbad70214
fish: Add epub2pdf function
This is part of migrating scripts from ~/.local/bin to the nix-config.
Note that this also lets us use packages that aren't available in a
user's $PATH.
2024-05-27 23:33:50 -04:00
Donovan Glover
23b5891753
librewolf: Don't include mbrola
Reduces the closure size when mbrola isn't included in any other
packages.
2024-05-26 05:57:49 -04:00
Donovan Glover
566e479f32
meta: Move dev tools to separate module
Should fix the ci running out of space. Eventually we'll want to remove
this from our global $PATH and leverage nix flakes instead.
2024-05-20 13:14:11 -04:00
Donovan Glover
d209a08ff1
librewolf: Don't suggest open tabs 2024-05-20 11:52:45 -04:00
Donovan Glover
bd1cb1e36e
fish: Drop $SSH_AUTH_SOCK
Shouldn't be needed since this gets handled by the ssh-agent module if
enabled instead.
2024-05-20 11:49:33 -04:00
Donovan Glover
4e61b89e3b
vimtex: Set out_dir to /tmp/vimtex
This guarantees that auxiliary files won't be present in the current
directory from latexmk, and encourages reproducible pdfs with the usage
of tectonic.
2024-05-20 11:07:20 -04:00
Donovan Glover
0f5f85c61d
librewolf: Don't suggest search engines
Removes the useless DuckDuckGo suggestion when starting a search with
"d".
2024-05-20 11:06:12 -04:00
Donovan Glover
f3b256d361
librewolf: Don't restore pinned tabs simultaneously
Makes pinned tabs more viable since timing correlation attacks can be
reduced after a browser crash.
2024-05-20 10:42:43 -04:00
Donovan Glover
7bd2ae13ac
librewolf: Don't suggest bookmarks
Mainly for a peace of mind when performing searches.
2024-05-20 10:42:09 -04:00
Donovan Glover
b26094698c
Revert "vimtex: Drop unnecessary vimtex_view_method"
This breaks synctex support for zathura.
2024-05-20 01:01:04 -04:00
Donovan Glover
d1f571bc48
vimtex: Drop unnecessary vimtex_view_method
Seems to be handled automatically by xdg-open, so removing this makes
the config more portable.
2024-05-20 00:32:07 -04:00
Donovan Glover
9b79bc6a61
meta: Remove nixpkgs-fmt / nixfmt from global $PATH
These should be used at the flake level instead so `nix fmt` can be
used.
2024-05-19 23:33:35 -04:00
Donovan Glover
7273b6c3f2
fish: Remove useless export GPG_TTY=(tty)
This is automatically handled by home-manager's gpg-agent module.
2024-05-19 23:26:30 -04:00
Donovan Glover
e96bb70ed7
direnv: Prefer silent option over $DIRENV_LOG_FORMAT
This actually sets $DIRENV_LOG_FORMAT for us.
2024-05-19 23:19:06 -04:00
Donovan Glover
a7cd5bcc3d
fish: Drop $TERMCMD
Not needed since we don't use ranger anymore.
2024-05-19 23:02:01 -04:00
Donovan Glover
7aa2360d65
librewolf: Don't require extensions to be signed 2024-05-19 14:32:52 -04:00
Donovan Glover
02cf2abc7d
librewolf: Don't suggest frequently visited sites 2024-05-19 14:31:36 -04:00
Donovan Glover
a2aa6149a6
neovim: Switch from marksman to markdown-oxide
Seemed a bit buggy from initial testing, but should overall have more
features for PKM-related activities than marksman.
2024-05-15 17:39:28 -04:00
Donovan Glover
b438e9bafc
feat: Drop typst support
Although typst is an interesting project, TeX has vastly superior
typesetting and a significantly larger repository of existing packages
and knowledge to extend upon.

I faced auto-updating issues with typst that weren't present with
vimtex, and TeX in general has better support for auto-completions due
to its \backslash usage.
2024-05-14 08:21:50 -04:00
Donovan Glover
08cc18133d
ironbar: Add battery indicator support with upower
It turns out that I'd rather have a battery indicator than having to
`cat /sys/class/power_supply/BAT0/capacity` all the time.

Depends on upower and results in the battery indicator always being
shown even when virtualized.
2024-05-13 11:06:18 -04:00
Donovan Glover
aa32d93576
meta: Move base16-nvim into separate package
Makes the package easier to use outside of the config.
2024-05-12 20:48:04 -04:00
Donovan Glover
4fcf7d48af
meta: Remove sqlite / sqlcipher from global $PATH
Will be handled in individual project flake.nix files instead.
2024-05-12 19:17:18 -04:00
Donovan Glover
78d3861fd5
meta: Remove pnpm / yarn / bun from global $PATH
Will be focusing on npm instead since tooling is excellent and I'd
rather have a package manager that's old, reliable, and just works
than a newer one that might be missing a feature I need.
2024-05-12 14:46:26 -04:00
Donovan Glover
522ea1201d
meta: Remove crystal / shards from global $PATH
This is a part of having separate flake.nix files for each project
and using devShells for the dependencies needed.

Note that using Crystal as a language seems less likely overall due to
the difficulty of building Crystal packages for nixpkgs and the lack of
tooling and library support compared to other languages like TypeScript
and Rust.
2024-05-12 14:41:04 -04:00
Donovan Glover
0f687e989d
fish: Remove bun abbreviations
I originally thought I was going to use bun, but it turns out that there
are simply too many inconveniences compared to using npm itself, which
includes built-in nixpkgs support with buildNpmPackage and vastly
superior shell completions among other things.
2024-05-12 13:23:00 -04:00
Donovan Glover
69495f38d9
npm: Remove .npm-packages
We no longer need to worry about this since we can install npm packages
with Nix instead.
2024-05-12 12:00:28 -04:00
Donovan Glover
4d3cb6c027
chore: Prefer hash over sha256 2024-05-12 11:55:47 -04:00
Donovan Glover
ff2caf7354
fish: Remove .cargo from $PATH
Rust programs are easy enough to install The Nix Way so there's no real
reason to put .cargo in $PATH, especially when programs that have
dependencies like openssl won't work this way.
2024-05-12 10:48:46 -04:00
Donovan Glover
2bd7a0cef9
fish: Remove .deno from $PATH
It turns out I don't use deno nearly as much as I thought I would,
especially when the current node ecosystem works so, so well in
comparison.

I also haven't encountered any deno-specific programs that would be
worth installing globally.
2024-05-12 10:40:34 -04:00
Donovan Glover
5cc8a9002f
fish: Remove $GOPATH
Shouldn't be needed since I'm no longer interested in long-term Go
development. For when I *do* need to use Go, those packages can be
built as Nix derivations.
2024-05-12 10:28:35 -04:00
Donovan Glover
48a6d8f5b3
fish: Remove .go from $PATH
I don't plan on globally installing go packages anymore anytime soon.
2024-05-12 10:26:28 -04:00
Donovan Glover
8a59fb9bbb
neovim: Prefer treesitter prisma over vim-prisma
vim-prisma currently has an issue where the syntax highlighting gets
messed up as one scrolls. The treesitter version doesn't have this
issue, which makes it more pleasing to work with.
2024-05-12 10:25:39 -04:00
Donovan Glover
5f002c7405
fish: Remove tauri text size workaround
Would rather just not use tauri than have this in the config.
2024-05-11 10:32:49 -04:00
Donovan Glover
c6a35490d1
fish: Remove .yarn from $PATH
I don't use yarn anymore since npm is better now.
2024-05-11 10:31:30 -04:00
Donovan Glover
681251cc75
neovim: Remove useless if statement
Yikes.
2024-05-10 15:31:32 -04:00
Donovan Glover
1a2dc0b5ae
meta: Don't install prisma globally
Prisma should be version locked to each individual project instead.
2024-05-10 14:55:32 -04:00
Donovan Glover
fbb060f197
meta: Don't define prisma env variables globally
This should be handled in individual flake.nix files for the respective
projects instead so they can depend on their own version of prisma.
2024-05-10 14:53:10 -04:00
Donovan Glover
cb650a5b5b
chore: Remove redundant nodePackages.npm
Not needed since npm is included with nodejs.
2024-05-03 07:49:45 -04:00
Donovan Glover
50d788ab4d
ironbar(mullvad): Localize new server location 2024-05-03 07:49:01 -04:00
Donovan Glover
ca4311fbd9
neovim: Replace vim-pug with treesitter
I don't use pug anymore so using treesitter is easier than having to
worry about a separate plugin.
2024-04-30 05:57:24 -04:00
Donovan Glover
08b6b737b6
neovim: Replace vim-vue with treesitter + vuels
Note that Vue tooling is seemingly subpar compared to React + TypeScript
so despite learning Vue first (and Angular.js before that), I don't
think I'd ever want to work with Vue again after getting familiar with
functional programming and React.
2024-04-30 05:40:33 -04:00
Donovan Glover
6d859f9d61
Revert "neovim: Remove vim-jsx-pretty"
This actually breaks auto-indent in tsx files.
2024-04-29 13:38:29 -04:00
Donovan Glover
a2e751a19c
neovim: Replace bufdelete-nvim with :bp|bd #
One less plugin to worry about.
2024-04-29 13:23:30 -04:00
Donovan Glover
ac4d271842
hyprland: Replace swww init with swww-daemon
This is necessary since swww init is deprecated.
2024-04-29 13:12:29 -04:00
Donovan Glover
de8a16a10c
neovim: Remove vim-over
I now use better tools that do one thing and do it well such as sd and
the built-in renamer of language servers.
2024-04-29 13:11:12 -04:00
Donovan Glover
36b322bb0c
neovim: Remove vim-jsx-pretty
Shouldn't be needed in modern times (or at least with treesitter) and no
observable difference was found when removing it.
2024-04-29 13:07:15 -04:00
Donovan Glover
4f120eab26
neovim: Drop emmet-vim
Don't use this nearly as much if at all in 2024 and any duplication is
usually handled programmatically or, in rare cases, with vim itself.
2024-04-29 12:47:38 -04:00
Donovan Glover
52bf43a2a7
neovim: Drop zen-mode-nvim
I never used this and it seems to cause more issues than it's worth.
It's easier to simply hide the tree on the left and manually adjust the
size of the kitty window.
2024-04-29 12:46:36 -04:00
Donovan Glover
48e173ac34
neovim: Drop useless markdown specifier
This seems to be the default now.
2024-04-29 12:46:12 -04:00
Donovan Glover
6711f75a0c
base16-nvim: Downgrade from 2024-04-18 to 2024-02-17
This fixes an issue where syntax highlighting was fixed upstream, which
broke my workflow since I was using the changing colors of the plugin
to determine when the LSP was loaded in. I also liked how it syntax
highlighted valid identifiers a different color than invalid ones.

See: https://github.com/RRethy/base16-nvim/pull/96
2024-04-25 12:52:38 -04:00
Donovan Glover
39e5183013
chore: Simplify
Note that biome isn't needed since eslint is *the* industry standard.
2024-04-22 22:29:47 -04:00
Donovan Glover
6fceabf0fc
ironbar: Update script for new mullvad status
Prevents the status from showing when not connected.
2024-04-22 22:18:59 -04:00
Donovan Glover
e1509cabe9
fish: Drop pnpm abbreviations
I'll still use pnpm when I *need* to, however the lack of support for
pnpm in nixpkgs is a show-stopper I'd rather not have to deal with when
npm works out of the box.

pnpm was originally used for faster install times and pnpm workspaces,
however npm now has its own workspaces and I'm okay with slower install
times if it means that everything works without fragile workarounds.
2024-04-21 08:59:41 -04:00
Donovan Glover
90a8565b12
fish: Drop yarn abbreviations
Yarn has been outdated for a while now, especially with the failure for
new projects to switch to "berry" among other things. I should never
need to use it again, but if I do, I don't need the abbreviations.

Yarn was originally used for yarn workspaces and faster install times.
Nowadays, however, other package managers are able to do both in more
efficient ways.
2024-04-21 08:54:54 -04:00
Donovan Glover
0ea334ae81
neovim: Drop yats-vim
Apparently dropping "Yet Another TypeScript Syntax" makes the startup
time of Neovim about twice as fast. This was originally added to fix an
issue with "type" annotations in imports being incorrect, although this
appears to have been fixed now.

From a cursory glance, there seems to be no difference between yats-vim
and the treesitter syntax highlighting I use, so it should be fine to
drop this for the massive performance gains.
2024-04-21 07:55:49 -04:00
Donovan Glover
d87ae2c7de
hyprland: Fix swap-bg script for files with spaces 2024-04-20 15:33:41 -04:00
Donovan Glover
54a392bc58
gtk: Remove redundant icon declaration
Not needed with stylix.
2024-04-18 21:26:25 -04:00
Donovan Glover
f9426b18c8
meta: Drop xcursor
This doesn't seem to change anything nowadays with Hyprland so it should
be okay to drop in 2024.

Edit: This seems to get set with pointerCursor in home-manager which
gets set by stylix, so it shouldn't matter either way.

See: ff1c364654/modules/config/home-cursor.nix (L172-L175)
And: b36fb34a9c/stylix/hm/cursor.nix (L15)
2024-04-18 21:17:38 -04:00
Donovan Glover
6826ef0307
phinger-cursors: Upgrade to 2.0 with phinger-cursors-dark
The new archive comes with a phinger-cursors-dark directory instead of
a phinger-cursors directory, which was a breaking change.
2024-04-18 20:28:29 -04:00
Donovan Glover
f91bf00256
chore: Remove redundant build tools from global environment
These *shouldn't* be needed since if a package requires these tools,
they'll have their own nix derivation.
2024-04-18 16:58:05 -04:00
Donovan Glover
fbb09fea48
neovim: Specify defaultEditor at the home-manager level
Does the same thing (with the exception of VISUAL not being set for now)
but makes the module more portable overall.
2024-04-18 13:44:25 -04:00
Donovan Glover
482c7a18e0
neovim: Use extraPackages for LSP packages
Prevents these packages from "polluting" the global namespace.
2024-04-18 12:49:14 -04:00
Donovan Glover
18e291822c
neovim: Drop plenary-nvim
This *shouldn't* be needed since it's a dependency of other vim plugins
and the dependency *should* automatically be handled at the nix level.
2024-04-18 11:02:00 -04:00
Donovan Glover
945bd13e4f
feat: Replace vim-nix-rummik with treesitter (again)
The latest treesitter changes actually make using it better than the old
vim-nix-rummik solution. Syntax highlighting works quite well for the
/* lang */ code blocks.
2024-04-18 10:53:17 -04:00