Added working macbook m1 config

This commit is contained in:
Aleksandr Lebedev 2024-11-20 23:18:12 +01:00
parent 753d9c0e96
commit 6ffdf4a0ee
33 changed files with 9639 additions and 46 deletions

View file

@ -21,19 +21,26 @@
outputs = { self, nixpkgs, stylix, nix-flatpak, ... }@inputs:
let
#system = "x86_64-linux";
#systems = ["aarch64-linux" "x86_64-linux" ];
#forAllSystems = nixpkgs.lib.genAttrs systems;
#pkgs = import nixpkgs {
# inherit system;
# config = {
# allowUnfree = true;
# };
#};
arm = "aarch64-linux";
x86 = "x86_64-linux";
in
{
nixosConfigurations = {
homepc = nixpkgs.lib.nixosSystem {
specialArgs = { hostname = "nixosbtw"; system = "x86_64-linux"; inherit inputs; };
specialArgs = { hostname = "nixosbtw"; system = x86; inherit inputs; };
system = x86;
# pkgs = import nixpkgs {
# system = x86;
# };
modules = [
#nur.nixosModules.nur
./nixos/configuration.nix
@ -41,15 +48,20 @@
./nixos/homepc-hardware-conf.nix
inputs.home-manager.nixosModules.default
stylix.nixosModules.stylix
./nixos/libvirt.nix
#nix-flatpak.nixosModules.default
];
};
mac = nixpkgs.lib.nixosSystem {
specialArgs = { hostname = "nixos-macbook-kylekrein"; system = "aarch64-linux"; inherit inputs; };
specialArgs = { hostname = "nixos-macbook-kylekrein"; system = arm; inherit inputs; };
system = arm;
# pkgs = import nixpkgs {
# system = arm;
# };
modules = [
./nixos/configuration.nix
./nixos/mac-hardware-conf.nix
./nixos/macos/configuration.nix
inputs.home-manager.nixosModules.default
stylix.nixosModules.stylix
];