From e212e08409ccd18c4243c558ece8b7a87b4137c0 Mon Sep 17 00:00:00 2001 From: "Chinmay D. Pai" Date: Thu, 12 Oct 2023 10:12:39 +0530 Subject: [PATCH] chore: seperate common config in flakes Signed-off-by: Chinmay D. Pai --- flake.nix | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/flake.nix b/flake.nix index 257a06a..908ae30 100644 --- a/flake.nix +++ b/flake.nix @@ -23,14 +23,19 @@ ]; }; + commons = [ + inputs.nh.nixosModules.default + inputs.nixvim.nixosModules.nixvim + ]; + # Laptop, X1 Carbon 9th Gen. hades = { - nixos-modules = [ - ./machines/hades - inputs.nh.nixosModules.default - inputs.nixvim.nixosModules.nixvim - nixos-hardware.nixosModules.lenovo-thinkpad-x1-9th-gen - ]; + nixos-modules = + [ + ./machines/hades + nixos-hardware.nixosModules.lenovo-thinkpad-x1-9th-gen + ] + ++ commons; home-module = import ./home/desktop; specialArgs = { @@ -43,9 +48,11 @@ # Server, AMD A8 APU. trench = { - nixos-modules = [ - ./machines/trench - ]; + nixos-modules = + [ + ./machines/trench + ] + ++ commons; home-module = import ./home/base; specialArgs = {