Commit Graph

33 Commits

Author SHA1 Message Date
d03ef276a5 containers: mount /media as read-only
Necessary when passing cdemu mount points to the wine container.
2025-05-29 09:36:30 -04:00
f4252670b1 containers: passthrough /dev/snd/seq
Required for MIDI.
2025-05-22 00:49:29 -04:00
ad5cd49ac9 wine: switch from waylandFull to stagingFull
stagingFull is updated more than waylandFull, so let's use that
instead.
2025-04-15 01:16:48 -04:00
8abd8444f0 chore: revert function spacing
It turns out that no extra line is used when the function definition
isn't at the beginning of the file.
2025-01-27 13:29:25 -05:00
421d0a1b03 containers: drop privateNetwork
At some point this broke and I haven't been able to find any leads on
why it broke, so the container now has access to host networking.
2025-01-27 11:22:15 -05:00
ecef6c094c chore: improve spacing 2024-12-22 09:00:14 -05:00
ec1e48b793 chore: improve formatting 2024-12-15 19:10:31 -05:00
477cac53a2 containers: let sakaya handle locale / timezone
Simplifies things a bit and makes things more flexible.
2024-11-07 19:25:30 -05:00
125dea6b30 containers(wordpress): drop
This was a cool experiment however I no longer have a need for the
WordPress container.
2024-11-01 16:26:25 -04:00
3140708973 containers(wine): handle graphical variables with sakaya 2024-10-23 00:27:24 -04:00
6096911759 containers(wine): remove unused fcitx variables
This doesn't seem to be needed inside the container since the host fcitx
is used.
2024-10-22 15:52:09 -04:00
4c45006c76 containers(wine): remove unused wayland session variables 2024-10-22 15:39:30 -04:00
248e8392fb containers(wine): use sakaya module from flake 2024-10-22 03:19:42 -04:00
9504beec01 containers(wine): remove useless systemPackage 2024-10-22 01:40:41 -04:00
d0c7374864 containers(wine): simplify 2024-10-22 01:40:08 -04:00
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
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
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
0238abd1e5 containers: simplify config 2024-10-11 15:13:08 -04:00
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
4495459229 meta: Move sakaya to containers module 2024-09-09 23:08:01 -04:00
a32f73a388 modules: Format with nixfmt-rfc-style 2024-08-03 14:40:07 -04:00
591747784e phone: Move containers config out of container module
We should explicitly enable it instead of conditionally disable it.
2024-07-17 05:55:17 -04:00
3e5a395dc8 containers: Don't enable on phone
Fixes an issue where the build would previously fail.
2024-06-20 13:49:39 -04:00
c6c49b62b5 chore: Improve formatting 2024-04-07 10:54:12 -04:00
ec496e1a69 meta: Rename shared.nix to default.nix
This should make it easier to tell that this is the default
configuration inherited by all containers.
2024-04-06 22:47:01 -04:00
2e366abf7d containers: Move wine config to separate file 2024-04-06 18:18:30 -04:00
3080c56023 containers: Fix warning when containers are disabled
Now it's possible to disable the containers without getting a warning
that containers.<name> is being defined.
2024-04-06 08:09:23 -04:00
59f557a3e5 feat: Pass nix-config as self to avoid infinite recursion
This change makes it possible to use this nix-config in all the
different ways imaginable (containers, bare metal, tests, and as a
separate flake input) *without* running into infinite recursion
issues with self.

It does this by using a trick similar to JavaScript in which
`var self = this;`, thus enabling the usage of "this" (or self, in
Nix's case) where it wouldn't otherwise be possible.

Note that this *only* works if the input for this repository is named
nix-config. This makes it impractical to combine with multiple
configurations that employ the same strategy.
2024-04-05 10:20:06 -04:00
b368817c52 feat: Simplify imports by importing with specialArgs
This change makes it possible to import the modules that are required
from the flake inputs in the output modules themselves, thus preventing
users from having to manually import those modules.

This simplifies things overall and was made possible by the specialArgs
option that allowed these flake inputs to be passed into our container.
2024-04-05 09:37:30 -04:00
83314da967 chore: Fix remaining hardcoded user values 2024-04-05 08:20:11 -04:00
a6f2c58d51 meta: Don't hardcode home directory
This is a much better way of handling things.
2024-04-04 19:39:35 -04:00
24c4badf39 meta: Make containers a nixosModule
Makes it easier to use the containers in other configs.
2024-04-01 06:24:52 -04:00