Is it possible to add below text to my default.nix. I’d like to keep hardware-configurations ‘generated-only’.
default.nix
...
fileSystems."/boot1" = {
# nofail: Makes it possible to boot with only 1 mirror present.
options = [ "nofail" ];
};
fileSystems."/boot2" = {
# nofail: Makes it possible to boot with only 1 mirror present.
options = [ "nofail" ];
};
...
hardware-configuration.nix
# 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, ... }:
...
fileSystems."/boot1" =
{ device = "/dev/disk/by-uuid/32C2-1234";
fsType = "vfat";
};
fileSystems."/boot2" =
{ device = "/dev/disk/by-uuid/32C3-1234";
fsType = "vfat";
};
...