diff options
| author | Franck Cuny <franck@fcuny.net> | 2024-02-23 08:49:10 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2024-03-04 08:36:45 -0800 |
| commit | 0b7a643ec291d8bda1f91db3cc1e436d317e6e1e (patch) | |
| tree | b221fcf66319c87ff5173281e52e4b74ed1bba70 /nix/flake/hosts.nix | |
| parent | chore: update flake (diff) | |
| download | infra-0b7a643ec291d8bda1f91db3cc1e436d317e6e1e.tar.gz | |
nix libraries and modules will be under `nix/`
Diffstat (limited to 'nix/flake/hosts.nix')
| -rw-r--r-- | nix/flake/hosts.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nix/flake/hosts.nix b/nix/flake/hosts.nix new file mode 100644 index 0000000..e3d1fff --- /dev/null +++ b/nix/flake/hosts.nix @@ -0,0 +1,30 @@ +{ inputs, ... }: +let + inherit (inputs) nixpkgs darwin home-manager firefox-darwin nur; + inherit (nixpkgs.lib) mkMerge; + + mkDarwinConfig = system: path: + darwin.lib.darwinSystem { + inherit system; + modules = [ + home-manager.darwinModule + path + { + nixpkgs.overlays = [ + firefox-darwin.overlay + nur.overlay + ]; + } + ]; + specialArgs = { inherit inputs; }; + }; +in +{ + flake = mkMerge [ + { + darwinConfigurations = { + mba-fcuny = mkDarwinConfig "aarch64-darwin" ../../hosts/mba; + }; + } + ]; +} |
