This commit is contained in:
cnst
2024-08-01 19:11:01 +02:00
parent ec2d61b288
commit a58147df97
17 changed files with 168 additions and 310 deletions

58
home/default.nix Normal file
View File

@@ -0,0 +1,58 @@
{
self,
inputs,
...
}: let
# get these into the module system
extraSpecialArgs = {inherit inputs self;};
homeImports = {
"cnst@cnix" = [
./core/gui/hypr/cnst.nix
./core/tui/git/cnst.nix
./core/tui/shell/cnst.nix
./core
./users/cnst
];
"adam@adampad" = [
./core/gui/hypr/cnst.nix
./core/tui/git/cnst.nix
./core/tui/shell/cnst.nix
./core
./users/adam
];
"toothpick@toothpc" = [
./core/gui/hypr/toothpick.nix
./core/tui/git/toothpick.nix
./core/tui/shell/toothpick.nix
./core
./users/toothpick
];
};
inherit (inputs.hm.lib) homeManagerConfiguration;
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
in {
# we need to pass this to NixOS' HM module
_module.args = {inherit homeImports;};
flake = {
homeConfigurations = {
"cnst_cnix" = homeManagerConfiguration {
modules = homeImports."cnst@cnix";
inherit pkgs extraSpecialArgs;
};
"adam_adampad" = homeManagerConfiguration {
modules = homeImports."adam@adampad";
inherit pkgs extraSpecialArgs;
};
"toothpick_toothpc" = homeManagerConfiguration {
modules = homeImports."toothpick@toothpc";
inherit pkgs extraSpecialArgs;
};
};
};
}