Commit Graph

3608 Commits

Author SHA1 Message Date
Donovan Glover
049040f1e0
meta: move container configs into containers module
This is part of making the config easier to understand for users by only
having directories that directly map to flake outputs.

This also simplifies using the config a bit since it's possible to
remove containers entirely by simply deleting the containers.nix file.
2024-10-22 00:54:18 -04:00
Donovan Glover
0299a132f7
neovim: replace vim-markdown with treesitter
Seems like vim-markdown started having highlighting issues in the
recent neovim update. Since treesitter does everything we were using
vim-markdown for, we can use that instead.
2024-10-16 02:27:23 -04:00
Donovan Glover
94d26cfae6
tests: prefer sending new line over return 2024-10-15 23:07:36 -04:00
Donovan Glover
db75a7e29a
tests: auto-login with getty 2024-10-15 23:01:19 -04:00
Donovan Glover
5db3da85a3
blueman: drop
Not needed with bluetui.
2024-10-15 21:36:37 -04:00
Donovan Glover
00e0798f93
friendlyfox: 2.11.1 -> 3.1.0 2024-10-15 21:25:13 -04:00
Donovan Glover
4c486c5046
packages: add bluetui 2024-10-15 21:03:36 -04:00
Donovan Glover
054a4bc77d
chore: fix unused variable for nixf-tidy 2024-10-15 16:55:00 -04:00
Donovan Glover
ea5c3c5f5a
desktop: fix anki-bin not being available on aarch64-linux 2024-10-15 16:54:15 -04:00
Donovan Glover
f2b703d7d9
neovim: fix encoding issue with nixd 2024-10-15 16:47:31 -04:00
Donovan Glover
bbfd32df5b
chore: update to latest nixos-unstable release
Note that anki was changed to anki-bin due to a pyqt6 error currently in
nixpkgs.
2024-10-15 15:03:43 -04:00
Donovan Glover
4d90d5cbf0
qutebrowser: drop
No real reason to use qutebrowser now that I've written new-tab-identity
and have LibreWolf programmed declaratively.

The additional complexity of having another browser installed meant that
I had to deal with a pyqt6 build error for an application I rarely used
for a number of reasons (no https by default etc.)
2024-10-15 15:02:59 -04:00
Donovan Glover
54b018aa22
fish(epub2pdf): drop
Rarely used this and the dependency on calibre was causing build issues
due to its dependency on pyqt6.
2024-10-15 14:34:26 -04:00
Donovan Glover
1f85bd4ec7
neovim: remove useless tabstop/shiftwidth
These are handled by editorconfig.
2024-10-13 17:55:59 -04:00
Donovan Glover
911547d78c
editorconfig: add back indent_size rules
Actually necessary to prevent indent lines from occasionally showing up
as 2 instead of 4. Also fixes shiftwidth.
2024-10-13 17:42:15 -04:00
Donovan Glover
086b21c312
editorconfig: do trim trailing whitespace
Should be okay to have this as default now that autosave is delayed a
bit.
2024-10-13 17:41:21 -04:00
Donovan Glover
d044ee5a0c
dwm: fix audio play/pause not working with librewolf 2024-10-13 15:12:07 -04:00
Donovan Glover
a48590feb7
packages(nadesiko3): add updateScript 2024-10-13 14:56:52 -04:00
Donovan Glover
f70f6c305d
packages(showdex): add updateScript
Unfortunately it seems non-trivial to get nix-update to work with update
scripts outside of nixpkgs however I could write a script to automate
updating all packages in the future.
2024-10-13 14:39:16 -04:00
Donovan Glover
a0acb050d0
packages(showdex): use github as source 2024-10-13 14:36:45 -04:00
Donovan Glover
2e9b8619ec
ublock-origin: drop dns modifications
Not necessary since this has now been fixed upstream.
2024-10-13 02:44:32 -04:00
Donovan Glover
a48a141203
ublock-origin: 1.59.0 -> 1.60.0
Also using the GitHub URL so updates work properly.
2024-10-13 02:42:54 -04:00
Donovan Glover
1fc96be25c
all-the-package-names: 2.0.1669 -> 2.0.1794 2024-10-13 02:31:16 -04:00
Donovan Glover
e47dbd0551
nadesiko3: 3.6.7 -> 3.6.22 2024-10-13 02:21:53 -04:00
Donovan Glover
dc54b90302
packages(yomitan): use github as source
Fixes an issue where updates didn't actually work due to the Firefox
extension url returning the incorrect version.
2024-10-13 01:29:23 -04:00
Donovan Glover
ec3d3899b9
meta: add audio keys support with playerctl
Actually quite useful now that I've figured out how to do this properly.
2024-10-11 23:43:02 -04:00
Donovan Glover
8e5d3c77c7
containers(wine): simplify networking
It turns out that having to do the `nat` shenanigans is no longer
necessary or was never necessary to begin with.

In either case, the simplified result is much easier to work with
due to no dependency on the localAddress.
2024-10-11 16:59:13 -04:00
Donovan Glover
d7f4e3fccc
containers: fix internet not working inside container
The wg-mullvad interface was at some point renamed to wg0-mullvad.

Note that in the future this method can be used to prevent certain
containers from accessing the internet in a similar way.
2024-10-11 16:55:44 -04:00
Donovan Glover
a7fad6beb9
containers: remove autostart with systemd.tmpfiles.rules
At some point this started causing the /run/user/1000 directory to be
deleted when changing container configurations, which was definitely not
ideal.

An alternative approach will have to be taken if we want the wine
container to auto-start on boot.
2024-10-11 16:46:45 -04:00
Donovan Glover
043e901711
containers: add wordpress
This is the start of my fun attempt at using NixOS containers for web
services as a Docker replacement.

After spending some time on other servers I realized that I don't
actually *need* my dotfiles on those servers, so it becomes
significantly faster to build these containers without worrying about
home-manager and command-line programs I use on the host.

Main advantages include web service configuration with Nix instead of
Docker. Disadvantages include increased complexity for anything that
isn't already maintained by others in nixpkgs.
2024-10-11 16:39:11 -04:00
Donovan Glover
0238abd1e5
containers: simplify config 2024-10-11 15:13:08 -04:00
Donovan Glover
4d751d3d12
flake: use listFilesRecursive for nixosSystem modules 2024-10-11 15:02:01 -04:00
Donovan Glover
35e390902a
chore: simplify formatting
Ran nix fmt and used built-ins where possible.
2024-10-11 14:52:56 -04:00
Donovan Glover
c9652f1680
flake: use checks for all systems
This seems to work now, possibly fixed by using the latest Nix version.
2024-10-11 14:39:18 -04:00
Donovan Glover
14acf89052
flake: replace listToAttrs with genAttrs
Simplifies things a bit since we no longer have to use `listToAttrs`
after `map`.
2024-10-11 14:37:50 -04:00
Donovan Glover
6a31427b44
chore: simplify formatting 2024-10-11 14:29:37 -04:00
Donovan Glover
eac686339b
flake: drop usage of @attrs
Using @attrs for the flake was cool at first, but this doesn't actually
work if we want to use our nix-config inside NixOS containers due to how
`self` works.

Because of this, it's easier to simply ban @attrs altogether and use
`nix-config` for everything since it's possible to access *all* the
inputs of nix-config from itself instead of having to manually inherit
each input we want (which could be any of them).
2024-10-11 13:35:45 -04:00
Donovan Glover
469b18907e
flake: remove mobile-nixos-vm
Previously we used a mobile-nixos config without the mobile-nixos
modules to start up a QEMU virtual machine on x86_64-linux without
having to worry about cross-compiling aarch64-linux.

Although this worked, the added complexity was not ideal and the
compilation time of the kernel with emulation was definitely not
ideal (5+ hours).

Note that I *may* add this again in the future, although I'd rather
set the system to x86_64-linux and cross-compile instead, which
mobile-nixos already supports but takes a large amount of ram.
2024-10-11 13:31:32 -04:00
Donovan Glover
4f9289a35c
meta: move mobile-nixos imports out of flake
This is part of making the flake easier to understand by separating
concerns a bit more.
2024-10-11 13:15:43 -04:00
Donovan Glover
11c555d2c5
containers: merge default.nix with wine.nix
It turns out that I shouldn't actually need graphical container support
for most containers, which might also improve build times with multiple
containers.
2024-10-11 12:28:05 -04:00
Donovan Glover
f12d57c8f8
flake: add flake support for mobile-nixos 2024-10-11 11:59:38 -04:00
Donovan Glover
1aa3163acb
system(nix): keep going during builds
Prevents an issue where previously it'd be possible for a nixos-rebuild
to stop during the middle of compilation during a build failure, which
is problematic for longer builds.
2024-10-11 11:57:15 -04:00
Donovan Glover
140e61b54b
system: fix systemd-boot not applying for non-aarch64 2024-10-11 11:55:42 -04:00
Donovan Glover
8e3a8568e3
system: only emulate aarch64-linux if x86_64-linux 2024-10-10 14:24:07 -04:00
Donovan Glover
60401813e6
meta: prefer isPhone over mkForce 2024-10-10 14:21:42 -04:00
Donovan Glover
2e0693f4ce
home: add presenterm
Used for terminal-based slideshows with markdown. Wow your audience
with a cool terminal background blur effect not present in any other
mainstream tools.
2024-10-10 13:34:49 -04:00
Donovan Glover
5d5c4d7853
mime-apps: specify text/html and application/pdf
Necessary due to Chromium wanting to open these files instead.
2024-10-10 09:21:28 -04:00
Donovan Glover
e38bb2123b
fcitx: disable quickphrase
Finally, no more accidentally pressing Super+` or Super+;
2024-10-10 09:08:35 -04:00
Donovan Glover
63ddd69abf
dwm: remove unused desktop icons patch
Not that useful now that I prefer using a keybind for yazi.
2024-10-10 09:06:27 -04:00
Donovan Glover
315a87e8d2
meta: use keybind to open yazi
Seems faster, cooler, and more useful than having desktop icons.
2024-10-10 09:04:54 -04:00