phone: Import remaining modules from nix-config

This seems to work and now includes the containers module.
This commit is contained in:
Donovan Glover 2024-06-20 13:28:02 -04:00
parent de2d3550d0
commit e14045e7d4
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -1,18 +1,13 @@
{ nix-config, pkgs, ... }:
{ self, pkgs, ... }:
let
inherit (builtins) attrValues;
in
{
imports = attrValues {
inherit (nix-config.nixosModules) system shell desktop hardware;
};
nixpkgs.overlays = attrValues nix-config.overlays;
home-manager.sharedModules = attrValues nix-config.homeManagerModules;
environment.systemPackages = attrValues nix-config.packages.${pkgs.system};
imports = attrValues self.nixosModules;
nixpkgs.overlays = attrValues self.overlays;
home-manager.sharedModules = attrValues self.homeManagerModules;
environment.systemPackages = attrValues self.packages.${pkgs.system};
modules = {
system = {