-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(hosts): changed structure of importing module for lib
- Loading branch information
Showing
6 changed files
with
43 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,32 @@ | ||
{ lib, system, home-manager, pkgs, unstable, dotfiles, systemStaff, inputs, ... }: | ||
{ lib | ||
, system | ||
, inputs | ||
, ... | ||
}: | ||
let | ||
ownPackages = inputs.wittano-repo.packages.x86_64-linux; | ||
mkPkgs = p: | ||
import p { | ||
inherit system; | ||
|
||
config.allowUnfree = true; | ||
}; | ||
|
||
pkgs = mkPkgs inputs.nixpkgs; | ||
unstable = mkPkgs inputs.nixpkgs-unstable; | ||
|
||
mapper = import ./mapper.nix { inherit lib; }; | ||
imports = import ./imports.nix { inherit lib; }; | ||
|
||
dotfiles = mapper.mapDirToAttrs inputs.wittano-dotfiles; | ||
systemStaff = mapper.mapDirToAttrs inputs.system-staff; | ||
|
||
home-manager = inputs.home-manager; | ||
in | ||
{ | ||
hosts = import ./hosts.nix { inherit lib system home-manager pkgs unstable dotfiles systemStaff inputs ownPackages; }; | ||
mapper = import ./mapper.nix { inherit lib; }; | ||
inherit mapper imports; | ||
|
||
hosts = import ./hosts.nix { inherit lib system pkgs unstable dotfiles systemStaff inputs ownPackages imports; }; | ||
link = import ./link.nix { inherit lib; }; | ||
apps = import ./apps.nix { inherit lib home-manager pkgs dotfiles ownPackages; }; | ||
imports = import ./imports.nix { inherit lib; }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters