flake-parts/home-configurations: init

This commit is contained in:
Gabriel Arazas 2024-01-17 17:31:35 +08:00
parent b183caaab8
commit 77fb48e95c
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 30 additions and 0 deletions

View File

@ -8,6 +8,7 @@
imports = [ imports = [
./images.nix ./images.nix
./deploy-rs-nodes.nix ./deploy-rs-nodes.nix
./home-configurations.nix
./home-modules.nix ./home-modules.nix
./setups ./setups
]; ];

View File

@ -0,0 +1,29 @@
{ lib, flake-parts-lib, ... }:
{
options = {
flake = flake-parts-lib.mkSubmoduleOptions {
homeConfigurations = lib.mkOption {
type = with lib.types; lazyAttrsOf raw;
default = {};
description = ''
Instantiated home-manager configurations.
`homeConfigurations is for specific home environments. If you want to
add reusable components, add them to {option}`homeModules`.
'';
example = lib.literalExpression ''
{
foodogsquared = inputs.home-manager.lib.homeManagerConfiguration {
pkgs = inputs.nixpkgs.legacyPackages.''${system};
modules = [
inputs.sops-nix.homeManagerModules.sops
./home.nix
];
};
}
'';
};
};
};
}