snowflake/home/profiles/default.nix
notohh 502c926f9f
WIP: treewide: refactor to use flake-parts
first pass of my flake refactor using flake-parts
2024-04-16 21:02:33 -04:00

49 lines
897 B
Nix

# stolen from fufexan
{
self,
inputs,
...
}: let
extraSpecialArgs = {inherit inputs self;};
homeImports = {
"notoh@tsuki" = [
../.
./tsuki
];
"notoh@ame" = [
../.
./ame
];
default = [
../.
./default
];
};
inherit (inputs.hm.lib) homeManagerConfiguration;
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
in {
_module.args = {inherit homeImports;};
flake = {
homeConfigurations = {
"notoh_tsuki" = homeManagerConfiguration {
modules = homeImports."notoh@tsuki";
inherit pkgs extraSpecialArgs;
};
"notoh_ame" = homeManagerConfiguration {
modules = homeImports."notoh@ame";
inherit pkgs extraSpecialArgs;
};
default = homeManagerConfiguration {
modules = homeImports.default;
inherit pkgs extraSpecialArgs;
};
};
};
}