refactor(nvf): move core nvf config to a module
This commit is contained in:
parent
3e92ace989
commit
57a73bbcae
5 changed files with 118 additions and 84 deletions
29
modules/hm/programs/editor.nix
Normal file
29
modules/hm/programs/editor.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
username = config.nixosModules.mainUser;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf (config.hmModules.mainApps.editor == "nvf") (
|
||||
lib.mkMerge [
|
||||
{
|
||||
nix.settings.substituters = [ "https://nvf.cachix.org" ];
|
||||
nix.settings.trusted-public-keys = [
|
||||
"nvf.cachix.org-1:GMQWiUhZ6ux9D5CvFFMwnc2nFrUHTeGaXRlVBXo+naI="
|
||||
];
|
||||
|
||||
home-manager.users.${username} = {
|
||||
imports = [
|
||||
inputs.nvf.homeManagerModules.default
|
||||
./nvf/core.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
]
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue