added home manager configurations to output

This commit is contained in:
Leyla Becker 2024-11-24 21:51:42 -06:00
parent 90f0c114b3
commit 3fdee879c7
9 changed files with 45 additions and 32 deletions

View file

@ -63,11 +63,15 @@
};
};
outputs = {...} @ inputs: let
outputs = {
self,
nixpkgs,
...
} @ inputs: let
util = import ./util {inherit inputs;};
forEachPkgs = util.forEachPkgs;
mkSystem = util.mkSystem;
# mkHome = util.mkHome;
mkHome = util.mkHome;
# callPackage = nixpkgs.lib.callPackageWith (nixpkgs // {lib = lib;});
# lib = callPackage ./lib {} // nixpkgs.lib;
in {
@ -93,6 +97,17 @@
};
});
homeConfigurations = nixpkgs.lib.attrsets.mergeAttrsList (
nixpkgs.lib.attrsets.mapAttrsToList (hostname: system: (
nixpkgs.lib.attrsets.mapAttrs' (user: _: {
name = "${user}@${hostname}";
value = mkHome user hostname system.pkgs.hostPlatform.system system.config;
})
system.config.home-manager.users
))
self.nixosConfigurations
);
# homeConfigurations = {
# "leyla@horizon" = mkHome "leyla" "horizon"; # "x86_64-linux" ./homes/leyla;
# };