Lemmy broken on Germany
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let generateMac = pkgs.lib.network.generate-mac-address;
|
||||
|
||||
in {
|
||||
@@ -22,6 +23,8 @@ in {
|
||||
extraModulePackages = [ ];
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
supportedFilesystems = [ "bcachefs" ];
|
||||
|
||||
loader.grub = {
|
||||
enable = true;
|
||||
devices = [
|
||||
@@ -85,11 +88,45 @@ in {
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=@container-data" "noatime" "compress=zstd" "noexec" ];
|
||||
};
|
||||
|
||||
## BROKEN!
|
||||
# "/store" = {
|
||||
# device = lib.concatStringsSep ":" [
|
||||
# "/dev/disk/by-id/ata-Crucial_CT525MX300SSD1_171516B3CB40"
|
||||
# "/dev/disk/by-id/ata-ST8000DM004-2U9188_ZR153N5H"
|
||||
# "/dev/disk/by-id/ata-ST8000DM004-2U9188_ZR153CDK"
|
||||
# ];
|
||||
# fsType = "bcachefs";
|
||||
# options = [ "noexec" "compression=zstd" ];
|
||||
# };
|
||||
};
|
||||
|
||||
systemd.services.mount-bcachefs-store = let
|
||||
mountpoint = "/store";
|
||||
deviceString = concatStringsSep ":" [
|
||||
"/dev/disk/by-id/ata-Crucial_CT525MX300SSD1_171516B3CB40"
|
||||
"/dev/disk/by-id/ata-ST8000DM004-2U9188_ZR153N5H"
|
||||
"/dev/disk/by-id/ata-ST8000DM004-2U9188_ZR153CDK"
|
||||
];
|
||||
options = concatStringsSep "," [ "noexec" "compression=zstd" ];
|
||||
in {
|
||||
description =
|
||||
"Mount ${mountpoint} filesystem (can't use fileSystems with multiple devices).";
|
||||
wantedBy = [ "local-fs.target" ];
|
||||
script = ''
|
||||
[ -d ${mountpoint} ] || mkdir ${mountpoint}
|
||||
if ${pkgs.util-linux}/bin/findmnt ${mountpoint}; then
|
||||
echo "already mounted: ${mountpoint}"
|
||||
else
|
||||
echo "mounting filesystem: ${mountpoint}"
|
||||
${pkgs.bcachefs-tools}/bin/mount.bcachefs ${deviceString} -o ${options} ${mountpoint}
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
||||
swapDevices = [{ device = "/dev/disk/by-label/germany-swap"; }];
|
||||
|
||||
nix.settings.max-jobs = lib.mkDefault 24;
|
||||
nix.settings.max-jobs = mkDefault 24;
|
||||
|
||||
hardware.bluetooth.enable = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user