Initial work on establishing consistent AGENTS context
This commit is contained in:
parent
083e3e79b7
commit
bd9b9109d2
5 changed files with 37 additions and 1 deletions
|
|
@ -3,5 +3,7 @@
|
|||
./base.nix
|
||||
./fish.nix
|
||||
./git.nix
|
||||
./nixvim.nix
|
||||
./pi.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
22
modules/home/pi.nix
Normal file
22
modules/home/pi.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ config, configFiles, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
options.myModules.home.pi = {
|
||||
enable = mkEnableOption "custom pi agent configuration";
|
||||
};
|
||||
|
||||
config = mkIf config.myModules.home.pi.enable (
|
||||
let
|
||||
# Use user-specific config if it exists
|
||||
configPath = (configFiles + "/users/${config.myModules.home.user}/pi");
|
||||
in {
|
||||
# Use the correct Home Manager option
|
||||
home.file.".pi" = {
|
||||
source = configPath;
|
||||
recursive = true;
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue