This commit is contained in:
muon 2024-07-13 22:28:27 +00:00
parent 86a3de9311
commit 652b8599f8
11 changed files with 38 additions and 68 deletions

View file

@ -0,0 +1,21 @@
{ pkgs, lib, config, inputs, system, ... }: let
cfg = config.mods;
in {
options.mods.home.file = lib.mkOption {
description = "home-manager configuration file";
};
config = {
home-manager = {
extraSpecialArgs = { inherit system pkgs inputs; };
users."${cfg.user.name}" = {
imports = [
cfg.home.file
inputs.self.outputs.homeManagerModules.default
];
};
backupFileExtension = "bak";
};
};
}