mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
- Delete 2024-12-rework/ folder
- Rename modules/hosts/common to modules/shared, then split into:
- modules/shared/home/general
- modules/shared/home/linux
- modules/shared/nixos
- Update all import paths throughout the codebase
- Update lib/*.nix to use new paths
- Fix hardcoded /Users/${username} to use config.home.homeDirectory
- Update README and examples/flake-structure.nix
29 lines
No EOL
737 B
Nix
29 lines
No EOL
737 B
Nix
{ inputs, ... }: {
|
|
mkHomeConfig = {
|
|
homeDirectory,
|
|
system,
|
|
username,
|
|
}: inputs.home-manager.lib.homeManagerConfiguration {
|
|
extraSpecialArgs = { inherit inputs homeDirectory system username; };
|
|
|
|
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
|
|
|
# Specify your home configuration modules here, for example,
|
|
# the path to your home.nix.
|
|
modules = [
|
|
./nixpkgs-settings.nix
|
|
../modules/shared/home/general
|
|
../modules/hosts/home-manager-only
|
|
../modules/hosts/home-manager-only/home-${username}.nix
|
|
|
|
{
|
|
home = {
|
|
username = "${username}";
|
|
homeDirectory = "${homeDirectory}";
|
|
};
|
|
}
|
|
|
|
inputs.sops-nix.homeManagerModules.sops
|
|
];
|
|
};
|
|
} |