18 lines
430 B
Nix
18 lines
430 B
Nix
|
{ lib, pkgs, machine, user }:
|
||
|
let
|
||
|
hostname = machine.name;
|
||
|
username = user.name;
|
||
|
getUserConfig = pkgs.callPackage (import ./user-config.nix);
|
||
|
userConfigPath = getUserConfig { inherit hostname username; };
|
||
|
in { pkgs, ... }: {
|
||
|
imports = lib.optional (userConfigPath != null) userConfigPath;
|
||
|
|
||
|
config = {
|
||
|
_module.args = {
|
||
|
inherit
|
||
|
machine
|
||
|
user
|
||
|
;
|
||
|
};
|
||
|
};
|
||
|
}
|