[live-usb] Clean up config

Also switched from trying to override the `nixos` user to instead just
installing home-manager _into_ the `nixos` user. It felt a bit like
fighting the tide otherwise.
This commit is contained in:
2025-07-29 15:29:48 -07:00
parent 8b676203e7
commit 14b7de30f6
2 changed files with 10 additions and 12 deletions

View File

@@ -80,7 +80,11 @@
modules = baseModules ++ [
./machines/live-usb/configuration.nix
{
home-manager.users.johno = import ./home/home.nix;
home-manager.users.nixos = { ... }: {
imports = [ ./home/home.nix ];
home.username = nixpkgs.lib.mkForce "nixos";
home.homeDirectory = nixpkgs.lib.mkForce "/home/nixos";
};
home-manager.extraSpecialArgs = { inherit system; };
}
];