mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
flake-parts/home-configurations: init
This commit is contained in:
parent
b183caaab8
commit
77fb48e95c
@ -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
|
||||||
];
|
];
|
||||||
|
29
modules/flake-parts/home-configurations.nix
Normal file
29
modules/flake-parts/home-configurations.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user