mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 16:17:46 +00:00
21 lines
474 B
Nix
21 lines
474 B
Nix
{ 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";
|
|
};
|
|
};
|
|
}
|