mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-30 18:03:58 +01:00
- Add the agent profile (modules/nixos/agent.nix: rootless Podman, linger, nix-ld) with home/linux/tui.nix as its home role; ruby, kana and aquamarine use it, so hosts no longer import from hosts/idols-ruby. - Gate nushell's ~/.secrets source behind modules.shell.secrets.enable, off on agent hosts. - Persist the TUI home state on aquamarine's tmpfs root. - Document host profiles in hosts/README.md; add tests/agent-profile and drop the x86_64 colmena-parity test, which needs mysecrets. Assisted-by: Claude Code (claude-opus-5-5)
66 lines
1.6 KiB
Nix
66 lines
1.6 KiB
Nix
{
|
||
disko,
|
||
mylib,
|
||
lib,
|
||
...
|
||
}:
|
||
#############################################################
|
||
#
|
||
# Akane - a NixOS VM running on macOS's UTM App
|
||
#
|
||
#############################################################
|
||
let
|
||
hostName = "akane"; # Define your hostname.
|
||
in
|
||
{
|
||
imports = (mylib.scanPaths ./.) ++ [
|
||
disko.nixosModules.default
|
||
];
|
||
|
||
# supported file systems, so we can mount any removable disks with these filesystems
|
||
boot.supportedFilesystems = [
|
||
"ext4"
|
||
"btrfs"
|
||
"xfs"
|
||
#"zfs"
|
||
"ntfs"
|
||
"fat"
|
||
"vfat"
|
||
"exfat"
|
||
|
||
# for file sharing between host & guests
|
||
"virtiofs"
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = [
|
||
"xhci_pci"
|
||
"virtio_pci"
|
||
"usbhid"
|
||
"usb_storage"
|
||
"sr_mod"
|
||
];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
# Use the systemd-boot EFI boot loader.
|
||
boot.loader.systemd-boot.enable = true;
|
||
boot.loader.efi.canTouchEfiVariables = true;
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
||
|
||
networking = {
|
||
inherit hostName;
|
||
|
||
networkmanager.enable = true;
|
||
};
|
||
|
||
# This value determines the NixOS release from which the default
|
||
# settings for stateful data, like file locations and database versions
|
||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||
# this value at the release version of the first install of this system.
|
||
# Before changing this value read the documentation for this option
|
||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||
system.stateVersion = "26.05"; # Did you read the comment?
|
||
}
|