feat: add darwin config to flake
This commit is contained in:
parent
ed0b0480e6
commit
442c9051ba
2 changed files with 52 additions and 15 deletions
21
flake.nix
21
flake.nix
|
@ -12,6 +12,10 @@
|
|||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nix-darwin = {
|
||||
url = "github:nix-darwin/nix-darwin/master";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nur = {
|
||||
url = "github:nix-community/NUR";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
@ -23,13 +27,14 @@
|
|||
};
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
apple-silicon,
|
||||
flake-utils,
|
||||
home-manager,
|
||||
nix-darwin,
|
||||
nur,
|
||||
sops-nix,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
supportedSystems = [
|
||||
|
@ -72,7 +77,9 @@
|
|||
pkgs = import nixpkgs {
|
||||
inherit system overlays;
|
||||
};
|
||||
modules = [ ./home/irl.nix ];
|
||||
modules = [
|
||||
./home/irl.nix
|
||||
];
|
||||
};
|
||||
"irl-gui-${system}" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = import nixpkgs {
|
||||
|
@ -90,5 +97,13 @@
|
|||
}
|
||||
// flake-utils.lib.eachSystem supportedSystems (system: {
|
||||
formatter = nixpkgs.legacyPackages.${system}.nixfmt-tree;
|
||||
});
|
||||
})
|
||||
// {
|
||||
darwinConfigurations."irl-mac-mini" = nix-darwin.lib.darwinSystem {
|
||||
system = "aarch64-darwin";
|
||||
modules = [
|
||||
./darwin/common.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue