21 Oct 2024 |
Jaafar | Is it possible to share one Home Manager configuration across multiple nixosConfigurations ? | 21:02:28 |
frontear | yeah lockfile is the only issue you will have | 21:02:30 |
frontear | yep, just import it for each one | 21:02:45 |
mjm | In reply to @jaafar:kde.org Is it possible to share one Home Manager configuration across multiple nixosConfigurations ? yes | 21:02:45 |
mjm | home-manager.users.your-username = ./home.nix or something | 21:03:13 |
Jaafar | In reply to @mjm:midna.dev
home-manager.users.your-username = ./home.nix or something I do have this code under nixosConfigurations.myHostName { modules } , but how do I ensure that this code can be shared to other hostnames like myOtherHostName or yetAnotherHostname ?
I'll share what I mean, hold on | 21:06:06 |
Jaafar | nixosConfigurations = {
amestris = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
./hosts/amestris
home-manager.nixosModules.home-manager
{
# foo
home-manager = {
extraSpecialArgs = { inherit inputs; };
useGlobalPkgs = true;
useUserPackages = true;
users = {
ed = import ./homes/ed;
};
};
}
];
};
};
| 21:06:35 |
mjm | what is your concern here? you can just do that in each other host? | 21:07:11 |
mjm | or even pull lines 9-19 into their own file and put that in modules | 21:07:40 |
Jaafar | So far I have one NixOS configuration, amestris and one HM configuration for the user ed . I want to make more NixOS configurations that also have the account ed along with its HM config | 21:08:23 |
Jaafar | In reply to @mjm:midna.dev or even pull lines 9-19 into their own file and put that in modules Do I need flake-parts for that? | 21:08:35 |
mjm | no | 21:08:41 |
Jaafar | sorry for the stupid question | 21:08:45 |
Jaafar | Oh, good. | 21:08:52 |
mjm | maybe this is helpful? https://slab.midna.dev/posts/how-should-i-structure-my-nix-os-config-for-multiple-machines-cv2qjdsk | 21:09:11 |
mjm | it's not about this specific thing but it's similar | 21:09:31 |
Jaafar | It seems on first glance to be exactly what I'm looking for. | 21:10:08 |
schuelermine | Has the Determinate Systems blog post from an hour ago been discussed here already? | 21:15:21 |
wuyoli | In reply to @emilazy:matrix.org I think those are the same? no, they have different amounts of members | 21:15:24 |
emily | not for me. so, I guess the problem is that you are sending aliases whose state is themselves split-brained | 21:15:49 |
emily | can you copy the !aisodjasoid IDs for the rooms instead? | 21:15:58 |
emily | cog → settings → advanced → room ID | 21:16:16 |
wuyoli | In reply to @emilazy:matrix.org cog → settings → advanced → room ID !RRerllqmbATpmbJgCn:nixos.org I don't mean the room. I mean the space. | 21:19:35 |
emily | right. spaces are rooms | 21:19:51 |
emily | Redacted or Malformed Event | 21:20:01 |
emily | uh | 21:20:09 |
emily | sorry, right, useless UI advice :) | 21:20:35 |
emily | because I was looking at my own private space that nests stuff | 21:20:40 |
emily | anyway, the right one is the one with 3185 members. | 21:21:01 |
emily | that's probably the simplest way to disambiguate. | 21:21:05 |