diff options
| author | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2026-01-25 14:11:14 +0100 |
|---|---|---|
| committer | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2026-01-25 14:11:14 +0100 |
| commit | 645e86a443d3f74cc8f9c95cb433cbefed5263cb (patch) | |
| tree | 65ab53d20b29792af60a6c7b1894c4cb192832a5 /hosts/omega-relay/disko.nix | |
| parent | 24ae3d26155fc70cf381422f9dedbbbb33b425d8 (diff) | |
Inital commit for working omega-relay host.
This commit includes:
- Mysql module from umbriel
- Disko configuration for the Ferox VM
- Freshrss module
- Stalwart module
- Vaultwarden module
- Wakapi module
- Uptime Kuma module
- Support for using mysql socket
- Server user that does not depend on full home-manager preset.
- ACME for wilkuu.xyz domains, including all the services.
Diffstat (limited to '')
| -rw-r--r-- | hosts/omega-relay/disko.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/hosts/omega-relay/disko.nix b/hosts/omega-relay/disko.nix new file mode 100644 index 0000000..9694e2a --- /dev/null +++ b/hosts/omega-relay/disko.nix @@ -0,0 +1,52 @@ +{pkgs, config, lib, ...}: { + config = lib.mkIf (!config.addons.virtualisation.isTestVM) ({ + services.btrfs.autoScrub = { + enable = true; + interval = "weekly"; + }; + + boot.loader.grub.device = "/dev/sda"; + # Workaround + boot.loader.grub.devices = lib.mkForce ["/dev/sda"]; + boot.loader.efi.canTouchEfiVariables = false; + + # TODO: Mount points + + # Disko for formatting + disko.devices = { + disk = { + main-disk = { + device = "/dev/sda"; + type = "disk"; + content = { + type = "gpt"; + partitions = { + BOOT = { + type = "EF02"; + size = "1M"; + }; + ESP = { + type = "EF00"; + size = "128M"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + mountOptions = [ "umask=0077" ]; + }; + }; + root = { + size = "100%"; + content = { + type = "filesystem"; + format = "btrfs"; + mountpoint = "/"; + }; + }; + }; + }; + }; + }; + }; + }); +} |
