chore: seperate common config in flakes

Signed-off-by: Chinmay D. Pai <chinmay.pai@zerodha.com>
This commit is contained in:
Chinmay D. Pai 2023-10-12 10:12:39 +05:30
parent f32772e7f2
commit e212e08409
Signed by: thunderbottom
GPG Key ID: 75507BE256F40CED

View File

@ -23,14 +23,19 @@
]; ];
}; };
commons = [
inputs.nh.nixosModules.default
inputs.nixvim.nixosModules.nixvim
];
# Laptop, X1 Carbon 9th Gen. # Laptop, X1 Carbon 9th Gen.
hades = { hades = {
nixos-modules = [ nixos-modules =
./machines/hades [
inputs.nh.nixosModules.default ./machines/hades
inputs.nixvim.nixosModules.nixvim nixos-hardware.nixosModules.lenovo-thinkpad-x1-9th-gen
nixos-hardware.nixosModules.lenovo-thinkpad-x1-9th-gen ]
]; ++ commons;
home-module = import ./home/desktop; home-module = import ./home/desktop;
specialArgs = specialArgs =
{ {
@ -43,9 +48,11 @@
# Server, AMD A8 APU. # Server, AMD A8 APU.
trench = { trench = {
nixos-modules = [ nixos-modules =
./machines/trench [
]; ./machines/trench
]
++ commons;
home-module = import ./home/base; home-module = import ./home/base;
specialArgs = specialArgs =
{ {