Files
nix-los/hosts/macvm-nix/default.nix

56 lines
1.2 KiB
Nix

{ config, lib, pkgs, disko, sops-nix, ... }:
{
# ============================================
# Machine-Specific Configuration
# ============================================
networking.hostName = "macvm-nix";
networking.domain = "";
# Disko: Auto-partitioning configuration
disko.devices = {
disk.main = {
type = "disk";
device = "/dev/vda";
content = {
type = "gpt";
partitions = {
ESP = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
# Bootloader
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Hardware: auto-detect
hardware.enableAllFirmware = true;
# Enable features specific to development
custom.development.enable = true;
custom.development.languages = [ "python" "nodejs" "go" ];
# ssh
services.openssh.enable = true;
}