Try to prepare for celerrime installation

This commit is contained in:
Ivan Bushchik 2023-07-29 18:24:43 +03:00
parent fd92c63b59
commit c2535f5754
No known key found for this signature in database
GPG key ID: 9F6DDABE11A2674D
2 changed files with 30 additions and 4 deletions

View file

@ -8,10 +8,11 @@
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
apple-silicon-support.url = "github:tpwrules/nixos-apple-silicon";
};
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
outputs = { self, nixpkgs, home-manager, apple-silicon-support, ... }@inputs: {
# Stella = Unchartevice 6540 (Ryzen 3 3250U, 16GB RAM)
nixosConfigurations."stella" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
@ -53,20 +54,31 @@
./machines/vetus/hardware.nix
];
};
/* These machines will be configured later. */
/*
# Celerrime = MacBook Air M2
nixosConfigurations."celerrime" = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
home-manager.nixosModules.home-manager
apple-silicon-support.nixosModules.apple-silicon-support
./common/base.nix
./common/user.nix
./roles/laptop.nix
./common/laptop.nix
./common/networking.nix
./common/locale.nix
./common/remote-access.nix
./roles/graphical.nix
#./roles/latex.nix
#./roles/gaming.nix
#./roles/devel.nix
./roles/yggdrasil-client.nix
./machines/celerrime/configuration.nix
./machines/celerrime/hardware.nix
];
};
/* These machines will be configured later. */
/*
# Effundam = MacBook Air M1 (server usage). Will not be added to flake.nix until thunderbolt and apfs proper support
nixosConfigurations."effundam" = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";

View file

@ -0,0 +1,14 @@
{ config, pkgs, ... }:
{
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
# Include the necessary packages and configuration for Apple Silicon support.
<apple-silicon-support/apple-silicon-support>
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = false;
}