Files
server-config/hosts/example.nix
Floweynt cbfdc8c4f2
diff-tag / dix (push) Successful in 6m11s
flake-check / flake-check (push) Successful in 52s
lint / lint (push) Successful in 1m49s
fix CI runs
2026-09-10 18:30:14 -05:00

39 lines
1012 B
Nix

_: {
# New host: copy this file to hosts/<name>.nix. Replace fileSystems/boot
# below with the real hardware (see hosts/server-n0.nix for a bigger
# example). Add a containers/<name>/ directory for its containers.
module =
{ lib, hostInfo, ... }:
{
networking.hostName = hostInfo.hostname;
fileSystems."/" = {
device = "/dev/disk/by-label/NIXOS_ROOT";
fsType = "ext4";
};
fileSystems."/persist" = {
device = "/dev/disk/by-label/NIXOS_PERSIST";
fsType = "ext4";
};
fileSystems."/nix" = {
device = "/dev/disk/by-label/NIXOS_NIX";
fsType = "ext4";
};
fileSystems."/var/log" = {
device = "/dev/disk/by-label/NIXOS_VARLOG";
fsType = "ext4";
neededForBoot = true;
};
boot.loader.grub.device = "nodev";
boot.loader.grub.efiSupport = true;
boot.loader.efi.canTouchEfiVariables = true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
};
}