Working on reshuffling
This commit is contained in:
@@ -1,17 +1,14 @@
|
||||
# ./generated/hosts/traveldroid/traveldroid.nix
|
||||
{ inputs, config, pkgs, lib, ... }:
|
||||
{ inputs, config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
# Import all reusable modules under ./generated/modules via the flake input
|
||||
modulesFromTree = builtins.attrValues (inputs.import-tree { path = ./generated/modules; });
|
||||
# Import all reusable modules via the flake input
|
||||
modulesFromTree = builtins.attrValues (inputs.import-tree { path = ../modules; });
|
||||
in
|
||||
{
|
||||
# Host-specific imports
|
||||
imports = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
] ++ modulesFromTree ++ [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
] ++ modulesFromTree;
|
||||
|
||||
# Host-specific configuration
|
||||
networking.hostName = "traveldroid";
|
||||
|
||||
Reference in New Issue
Block a user