18 lines
342 B
Nix
18 lines
342 B
Nix
|
{ lib, inputs, config, ... }:
|
||
|
|
||
|
let
|
||
|
cfg = config.snowhawk.sources;
|
||
|
in
|
||
|
{
|
||
|
options.snowhawk.sources = {
|
||
|
enable = lib.mkEnableOption "nix sources home-manager module";
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
home.file = {
|
||
|
"src/nixpkgs".source = inputs.nixpkgs;
|
||
|
"src/home-manager".source = inputs.home-manager;
|
||
|
};
|
||
|
};
|
||
|
}
|