Added working macbook m1 config
This commit is contained in:
parent
753d9c0e96
commit
6ffdf4a0ee
33 changed files with 9639 additions and 46 deletions
20
flake.nix
20
flake.nix
|
|
@ -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
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue