Original commit
This commit is contained in:
commit
cc74263a3b
26 changed files with 3052 additions and 0 deletions
40
flake.nix
Normal file
40
flake.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
description = "Example nix-darwin system flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-25.05-darwin";
|
||||
nix-darwin.url = "github:nix-darwin/nix-darwin/nix-darwin-25.05";
|
||||
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||
home-manager.url = "github:nix-community/home-manager/release-25.05";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
agenix.url = "github:ryantm/agenix";
|
||||
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs =
|
||||
inputs@{
|
||||
self,
|
||||
nix-darwin,
|
||||
home-manager,
|
||||
nixpkgs,
|
||||
agenix,
|
||||
}:
|
||||
let
|
||||
macbook = import ./systems/macbook/macbook.nix {
|
||||
nix-darwin = nix-darwin;
|
||||
home-manager = home-manager;
|
||||
self = self;
|
||||
agenix = agenix;
|
||||
};
|
||||
|
||||
selene = import ./systems/selene/system.nix {
|
||||
agenix = agenix;
|
||||
};
|
||||
in
|
||||
{
|
||||
# Build darwin flake using:
|
||||
# $ darwin-rebuild build --flake .#Maxiems-MacBook-Pro
|
||||
darwinConfigurations."Maxiems-MacBook-Pro" = macbook;
|
||||
nixosConfigurations.selene = selene;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue