working on machines
This commit is contained in:
+8
-8
@@ -90,19 +90,19 @@
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
# Home Manager configurations for each user/machine
|
homeConfigurations = lib.genAttrs (map (machine: user.username + "@" + machine) machines) (
|
||||||
homeConfigurations = lib.genAttrs machines (
|
userMachine:
|
||||||
machine:
|
let
|
||||||
|
username = lib.splitString "@" userMachine !!"";
|
||||||
|
machine = lib.splitString "@" userMachine !!"";
|
||||||
|
in
|
||||||
home-manager.lib.homeManagerConfiguration {
|
home-manager.lib.homeManagerConfiguration {
|
||||||
inherit system;
|
inherit system;
|
||||||
configuration = import ./assets/flake/users/${user.username}/home.nix {
|
configuration = import ./assets/flake/users/${username}/home.nix {
|
||||||
inherit inputs user;
|
inherit inputs user;
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
};
|
};
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = { inherit user inputs; flakeRoot = ./.; };
|
||||||
inherit user inputs;
|
|
||||||
flakeRoot = ./.;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user