From 1285614380a1b5c6261209dd5ca65925438ec441 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 4 Dec 2023 08:10:43 -0800 Subject: additional cleanup for flakes Move the host configuration to `flake/hosts.nix` to follow what we did with `devshell`. --- flake.nix | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 8994fc9..93df93c 100644 --- a/flake.nix +++ b/flake.nix @@ -32,28 +32,14 @@ }; # Output config, or config for NixOS system - outputs = inputs@{ self, flake-parts, ... }: - flake-parts.lib.mkFlake { inherit inputs; } { - flake = - let - mba = import ./flake/mba.nix { - inherit (inputs) nixpkgs home-manager darwin; - inherit inputs; - }; - in - { - darwinConfigurations = { - mba-fcuny = mba.system; - }; - }; - - systems = [ - "aarch64-darwin" - "x86_64-linux" - ]; + outputs = inputs: + inputs.flake-parts.lib.mkFlake { inherit inputs; } { + + systems = [ "aarch64-darwin" "x86_64-linux" ]; imports = [ ./flake/devshell.nix + ./flake/hosts.nix ]; }; } -- cgit 1.4.1