[darwin] 在 nix darwin 上跑通了
This commit is contained in:
@@ -2,17 +2,26 @@
|
||||
description = "Origami404's NixOS Flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
nixpkgs-linux.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
nixpkgs-darwin.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
darwin = {
|
||||
url = "github:nix-darwin/nix-darwin/master";
|
||||
inputs.nixpkgs.follows = "nixpkgs-darwin";
|
||||
};
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/master";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.nixpkgs.follows = "nixpkgs-linux";
|
||||
};
|
||||
home-manager-darwin = {
|
||||
url = "github:nix-community/home-manager/master";
|
||||
inputs.nixpkgs.follows = "nixpkgs-darwin";
|
||||
};
|
||||
sops-nix.url = "github:Mic92/sops-nix";
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, home-manager, ... }@inputs: {
|
||||
outputs = { nixpkgs-linux, nixpkgs-darwin, home-manager, home-manager-darwin, ... }@inputs: {
|
||||
nixosConfigurations = {
|
||||
"eris" = nixpkgs.lib.nixosSystem {
|
||||
"eris" = nixpkgs-linux.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
@@ -21,16 +30,41 @@
|
||||
};
|
||||
};
|
||||
|
||||
darwinConfigurations = {
|
||||
"hypnos" = inputs.darwin.lib.darwinSystem {
|
||||
system = "aarch64-darwin";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./hosts/hypnos/configuration.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
homeConfigurations = {
|
||||
"origami@eris" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
modules = [ ./home/hosts/eris.nix ];
|
||||
pkgs = nixpkgs-linux.legacyPackages.x86_64-linux;
|
||||
modules = [
|
||||
{ nixpkgs.config.allowUnfreePredicate = _: true; }
|
||||
./home/hosts/eris.nix
|
||||
];
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
};
|
||||
|
||||
"origami@metis" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
modules = [ ./home/hosts/metis.nix ];
|
||||
pkgs = nixpkgs-linux.legacyPackages.x86_64-linux;
|
||||
modules = [
|
||||
{ nixpkgs.config.allowUnfreePredicate = _: true; }
|
||||
./home/hosts/metis.nix
|
||||
];
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
};
|
||||
|
||||
"origami@hypnos" = home-manager-darwin.lib.homeManagerConfiguration {
|
||||
pkgs = nixpkgs-darwin.legacyPackages.aarch64-darwin;
|
||||
modules = [
|
||||
{ nixpkgs.config.allowUnfreePredicate = _: true; }
|
||||
./home/hosts/hypnos.nix
|
||||
];
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user