bunch of updates
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Block storage mount
|
||||
fileSystems."/srv/sealight" = {
|
||||
device = "/dev/disk/by-id/virtio-mel-3b1f60a89cd649";
|
||||
fsType = "ext4";
|
||||
options = [ "noatime" ];
|
||||
};
|
||||
|
||||
# Bind mounts for service data
|
||||
# PostgreSQL moved to NVMe for performance - data lives directly on /var/lib/postgresql
|
||||
# fileSystems."/var/lib/postgresql" = {
|
||||
# device = "/srv/sealight/postgresql";
|
||||
# fsType = "none";
|
||||
# options = [ "bind" "x-systemd.requires-mounts-for=/srv/sealight" ];
|
||||
# };
|
||||
|
||||
fileSystems."/var/lib/matrix-synapse" = {
|
||||
device = "/srv/sealight/matrix-synapse";
|
||||
fsType = "none";
|
||||
options = [ "bind" "x-systemd.requires-mounts-for=/srv/sealight" ];
|
||||
};
|
||||
|
||||
fileSystems."/var/lib/matrix-as-discord" = {
|
||||
device = "/srv/sealight/matrix-as-discord";
|
||||
fsType = "none";
|
||||
options = [ "bind" "x-systemd.requires-mounts-for=/srv/sealight" ];
|
||||
};
|
||||
|
||||
fileSystems."/var/lib/mautrix-telegram" = {
|
||||
device = "/srv/sealight/mautrix-telegram";
|
||||
fsType = "none";
|
||||
options = [ "bind" "x-systemd.requires-mounts-for=/srv/sealight" ];
|
||||
};
|
||||
|
||||
fileSystems."/var/lib/wireguard" = {
|
||||
device = "/srv/sealight/wireguard";
|
||||
fsType = "none";
|
||||
options = [ "bind" "x-systemd.requires-mounts-for=/srv/sealight" ];
|
||||
};
|
||||
|
||||
fileSystems."/var/www" = {
|
||||
device = "/srv/sealight/www";
|
||||
fsType = "none";
|
||||
options = [ "bind" "x-systemd.requires-mounts-for=/srv/sealight" ];
|
||||
};
|
||||
|
||||
# Ensure services wait for mounts
|
||||
# PostgreSQL no longer needs to wait for /srv/sealight mount
|
||||
# systemd.services.postgresql.unitConfig.RequiresMountsFor = [ "/srv/sealight" ];
|
||||
systemd.services.matrix-synapse.unitConfig.RequiresMountsFor = [ "/srv/sealight" ];
|
||||
}
|
||||
@@ -1,7 +1,9 @@
|
||||
{ self, profiles, suites, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./configuration.nix
|
||||
./block-storage.nix
|
||||
../profiles/core
|
||||
../profiles/server
|
||||
../profiles/metrics
|
||||
|
||||
@@ -1,27 +1,22 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
imports = [ ];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "ata_piix" "floppy" "virtio_pci" "sr_mod" "virtio_blk" ];
|
||||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{
|
||||
device = "/dev/disk/by-uuid/3b8b2c4b-835e-4822-8ac8-0effdc8270d6";
|
||||
fsType = "btrfs";
|
||||
};
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/f9e9468f-ff3b-430d-9ecf-ba275cf2f716";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
virtualisation.hypervGuest.enable = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user