This commit is contained in:
Evan Reichard 2025-03-27 10:11:28 -04:00
parent 72ba8ddf59
commit b956c8da1e
2 changed files with 97 additions and 1 deletions

View File

@ -4,13 +4,17 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
disko.url = "github:nix-community/disko";
apple-silicon = {
url = "github:tpwrules/nixos-apple-silicon";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, disko, nixos-generators }:
outputs = { self, nixpkgs, disko, nixos-generators, apple-silicon }:
let
mkSystem = { systemConfig ? { }, moduleConfig }: nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
@ -46,6 +50,15 @@
# NixOS Configurations
nixosConfigurations = {
# MBP NixOS Asahi
mpb-asahi = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
apple-silicon.nixosModules.default
./hosts/mbp-asahi.nix
];
};
# Office Server (LLaMA / ADS-B)
lin-va-office = mkSystem {
systemConfig = ./hosts/office-server.nix;

83
hosts/mbp-asahi.nix Normal file
View File

@ -0,0 +1,83 @@
{ pkgs, lib, ... }:
# let
# home-manager = builtins.fetchTarball {
# url = "https://github.com/nix-community/home-manager/archive/release-24.11.tar.gz";
# sha256 = "156hc11bb6xiypj65q6gzkhw1gw31dwv6dfh6rnv20hgig1sbfld";
# };
# in
{
# imports = [
# "${home-manager}/nixos"
# ];
# Generic Config
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
time.timeZone = "America/New_York";
# Boot Loader Config
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = false;
};
# Networking Config
networking = {
firewall.enable = true;
hostName = "mpb-nixos";
networkmanager.enable = true;
networkmanager.wifi.backend = "iwd";
useDHCP = lib.mkDefault true;
wireless.iwd.enable = true;
};
# Hardware Config
hardware = {
asahi = {
peripheralFirmwareDirectory = ./firmware;
useExperimentalGPUDriver = true;
};
# graphics = {
# enable = true;
# enable32Bit = true;
# };
bluetooth.enable = true;
bluetooth.powerOnBoot = true;
};
# # User Config
# users.users.evanreichard = {
# isNormalUser = true;
# home = "/home/evanreichard";
# extraGroups = [ "wheel" "networkmanager" "video" ];
# shell = pkgs.bash;
# };
# # Home Manager Config
# home-manager = {
# useGlobalPkgs = true;
# useUserPackages = true;
# users.evanreichard = import ../home-manager/home.nix;
# };
# HyprLand Config
programs.hyprland.enable = true;
# environment.sessionVariables.NIXOS_OZONE_WL = "1";
# environment.sessionVariables.WLR_NO_HARDWARE_CURSORS = "1";
# System Packages
environment.systemPackages = with pkgs; [
ghostty
firefox
htop
tmux
vim
wget
hyprlock
hypridle
];
}