Add utm-aarch64 host configuration
This commit is contained in:
10
flake.nix
10
flake.nix
@@ -135,11 +135,11 @@
|
|||||||
enableHomeManager = false;
|
enableHomeManager = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Example: ARM64 host (e.g. Raspberry Pi 4, Apple Silicon VM)
|
# ARM64 UTM Virtual Machine (Apple Silicon)
|
||||||
# laptop-arm = mkNixosSystem {
|
laptop-arm = mkNixosSystem {
|
||||||
# system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
# hostModule = ./hosts/laptop/default.nix;
|
hostModule = ./hosts/utm-aarch64/default.nix;
|
||||||
# };
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# ============================================
|
# ============================================
|
||||||
|
|||||||
58
hosts/utm-aarch64/default.nix
Normal file
58
hosts/utm-aarch64/default.nix
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
{ config, lib, pkgs, disko, sops-nix, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
disko.nixosModules.disko
|
||||||
|
];
|
||||||
|
|
||||||
|
# ============================================
|
||||||
|
# Machine-Specific Configuration
|
||||||
|
# ============================================
|
||||||
|
|
||||||
|
networking.hostName = "mac-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 = lib.mkDefault false;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user