Skip to content

Commit

Permalink
🔧 (flake): homeManager refact
Browse files Browse the repository at this point in the history
  • Loading branch information
elythh committed Oct 10, 2024
1 parent ddd35f2 commit 7c3b3f0
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions home/default.nix
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
{ self, inputs, ... }:
{
flake =
flake.homeConfigurations =
let

inherit (inputs.hm.lib) homeManagerConfiguration;

extraSpecialArgs = {
inherit inputs self;
};
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;

mkHome =
hostname:
homeManagerConfiguration {
inherit extraSpecialArgs pkgs;
modules = [ ./gwen/${hostname}.nix ];
};
in
{
homeConfigurations = {
"gwen@grovetender" = homeManagerConfiguration {
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
inherit extraSpecialArgs;
modules = [ ./gwen/grovetender.nix ];
};
"gwen@aurelionite" = homeManagerConfiguration {
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
inherit extraSpecialArgs;
modules = [ ./gwen/aurelionite.nix ];
};
};
"gwen@grovetender" = mkHome "grovetender";
"gwen@aurelionite" = mkHome "aurelionite";
};
}

0 comments on commit 7c3b3f0

Please sign in to comment.